Function at 0x40355a
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x42655a
call fcn.00408ffc
sub esp, 0x420
push esi
xor esi, esi
push esi
mov dword [ebp - 0x5c], esi
call fcn.00410054
push eax
call fcn.00410042
pop ecx
pop ecx
lea ecx, [ebp - 0xd]
call fcn.00402a2f
mov ecx, eax
call fcn.00404848
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401edf
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], esi
call fcn.00402aeb
mov ecx, eax
call fcn.00404894
push eax
lea ecx, [ebp - 0x104]
call fcn.00401edf
xor eax, eax
lea ecx, [ebp - 0xd]
inc eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], al
call fcn.00402b9d
mov ecx, eax
call fcn.00404894
push eax
lea ecx, [ebp - 0xec]
call fcn.00401edf
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 2
call fcn.00402bf7
mov ecx, eax
call fcn.0040486e
push eax
lea ecx, [ebp - 0xd4]
call fcn.00401edf
lea eax, [ebp - 0x2d]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x70]
call fcn.00401f74
push fcn.004023a8
push 4
push 0x18
pop esi
push esi
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 5
push eax
call fcn.00408ea3
cmp byte [ebp + 0xc], 0
je 0x40365b
lea ecx, [ebp + 0xf]
call fcn.00402c50
mov ecx, eax
call fcn.00404822
push eax
lea ecx, [ebp - 0xbc]
call fcn.00401edf
mov ecx, eax
jmp 0x403689
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x70]
cdq
idiv esi
mov esi, eax
call fcn.00410021
xor edx, edx
lea ecx, [ebp - 0xa4]
div esi
imul eax, edx, 0x18
add eax, dword [ebp - 0x70]
push eax
call fcn.00401e84
push 2
mov ecx, eax
pop eax
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00401e4e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 7
test al, 2
je 0x4036b7
and eax, 0xfffffffd
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x14], eax
call fcn.0040447f
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
test al, 1
je 0x4036ca
lea ecx, [ebp - 0xbc]
call fcn.0040447f
cmp dword [ebp - 0x78], 0xf
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp + 8]
cmova eax, dword [ebp - 0x8c]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x5c], eax
cmp dword [eax], 0x4550
jne 0x403a82
push edi
lea ecx, [ebp + 0xf]
call fcn.00402ca8
mov ecx, eax
call fcn.00404952
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov edi, eax
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x18], edi
call fcn.00402cff
mov ecx, eax
call fcn.0040460e
push eax
call esi
mov dword [ebp - 0x58], eax
test edi, edi
je 0x403a81
test eax, eax
je 0x403a81
lea ecx, [ebp + 0xf]
call fcn.00402d56
mov ecx, eax
call fcn.0040499e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push edi
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x38], eax
call fcn.00402daf
mov ecx, eax
call fcn.0040499e
push eax
push edi
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x1c], eax
call fcn.004026bc
mov ecx, eax
call fcn.00404764
push eax
push edi
call esi
mov edi, eax
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x34], edi
call fcn.00402716
mov ecx, eax
call fcn.004046f2
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x3c], eax
call fcn.0040276e
mov ecx, eax
call fcn.004046cc
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x44], eax
call fcn.004027c6
mov ecx, eax
call fcn.0040492c
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x48], eax
call fcn.0040281d
mov ecx, eax
call fcn.004047d6
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x4c], eax
call fcn.00402875
mov ecx, eax
call fcn.0040473e
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x50], eax
call fcn.004028cf
mov ecx, eax
call fcn.00404906
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x54], eax
call fcn.00402925
mov ecx, eax
call fcn.004046a6
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x14], eax
call fcn.0040297d
mov ecx, eax
call fcn.00404718
push eax
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xf]
mov dword [ebp - 0x40], eax
call fcn.004029d6
mov ecx, eax
call fcn.004047fc
push eax
push dword [ebp - 0x58]
call esi
cmp dword [ebp - 0x38], 0
mov dword [ebp + 0xc], eax
je 0x403a81
cmp dword [ebp - 0x1c], 0
je 0x403a81
test edi, edi
je 0x403a81
cmp dword [ebp - 0x3c], 0
je 0x403a81
cmp dword [ebp - 0x44], 0
je 0x403a81
cmp dword [ebp - 0x48], 0
je 0x403a81
cmp dword [ebp - 0x4c], 0
je 0x403a81
cmp dword [ebp - 0x50], 0
je 0x403a81
cmp dword [ebp - 0x54], 0
je 0x403a81
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x403a81
cmp dword [ebp - 0x40], 0
je 0x403a81
test eax, eax
je 0x403a81
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x160]
pop edi
push edi
push 0
push eax
call fcn.0040aa30
add esp, 0xc
mov dword [ebp - 0x160], edi
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push edi
push 0x8000004
push edi
push edi
push edi
push edi
push dword [ebp - 0x60]
call dword [ebp - 0x38]
test eax, eax
je 0x403a81
push 0x2cc
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.0040aa30
add esp, 0xc
mov dword [ebp - 0x42c], 0x10007
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x28]
call dword [ebp - 0x3c]
push edi
test eax, eax
je 0x403965
push 4
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x388]
add eax, 8
push eax
push dword [ebp - 0x2c]
call dword [ebp - 0x40]
test eax, eax
jne 0x40396f
push edi
push dword [ebp - 0x2c]
call esi
jmp 0x403a81
cmp dword [ebp - 0x64], edi
jne 0x40397b
push edi
push dword [ebp - 0x2c]
call dword [ebp + 0xc]
mov esi, dword [ebp - 0x5c]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x2c]
call dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0
test edi, edi
je 0x403a48
push dword [esi + 0x54]
push dword [ebp + 8]
push edi
push dword [ebp - 0x2c]
call dword [ebp - 0x34]
test eax, eax
je 0x403a46
movzx eax, word [esi + 0x14]
xor ecx, ecx
xor edx, edx
mov dword [ebp + 0xc], ecx
add eax, 0x24
cmp dx, word [esi + 6]
jae 0x403a03
lea edi, [eax + esi]
cmp dword [edi + 4], 0
jbe 0x4039f1
mov eax, dword [edi + 8]
mov ecx, dword [edi]
add eax, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
push 0
push dword [edi + 4]
push eax
push ecx
push dword [ebp - 0x2c]
call dword [ebp - 0x34]
test eax, eax
je 0x403a46
mov ecx, dword [ebp + 0xc]
movzx eax, word [esi + 6]
inc ecx
add edi, 0x28
mov dword [ebp + 0xc], ecx
cmp ecx, eax
jl 0x4039cc
mov edi, dword [ebp - 0x1c]
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebp - 0x388]
add eax, 8
push eax
push dword [ebp - 0x2c]
call dword [ebp - 0x34]
test eax, eax
je 0x403a46
mov eax, dword [esi + 0x28]
add eax, edi
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x28]
call dword [ebp - 0x44]
test eax, eax
je 0x403a46
push dword [ebp - 0x28]
call dword [ebp - 0x48]
cmp eax, 0xffffffff
jne 0x403a52
push 0
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call eax
jmp 0x403a81
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [ebp - 0x4c]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x2c]
call dword [ebp - 0x50]
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x54]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push dword [ebp - 0x58]
call esi
pop edi
lea ecx, [ebp - 0x8c]
call fcn.0040447f
lea ecx, [ebp - 0x70]
call fcn.00404447
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret