Function at 0x41af59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438814
mov eax, dword fs:[0]
push eax
sub esp, 0x590
push ebx
push esi
push edi
mov eax, dword [0x447394]
xor eax, esp
push eax
lea eax, [esp + 0x5a0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 5]
test al, al
jne 0x41b1c0
and dword [esp + 0x18], 0
lea eax, [esp + 0x38]
push eax
mov byte [ebx + 6], 1
call fcn.0041b7ea
and dword [esp + 0x5a8], 0
mov dword [esp + 0x1c], 1
jmp 0x41b1a0
push 0x528
call fcn.00422af4
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x5a8], 1
test eax, eax
je 0x41afee
push dword [esp + 0x1c]
push eax
call fcn.0041847c
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x41aff7
and dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov byte [esp + 0x5a8], 0
mov dword [esp + 0x20], edi
test edi, edi
je 0x41b19c
cmp byte [ebx + 4], 0
jne 0x41b051
cmp byte [ebx + 5], 0
jne 0x41b051
mov eax, dword [ebx + 0xc]
mov byte [ebx + 6], 0
mov dword [esp + 0x24], eax
test eax, eax
je 0x41b051
push edi
lea eax, [esp + 0x78]
push eax
call fcn.0041d094
lea eax, [esp + 0x74]
push eax
call fcn.0041858a
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
lea esi, [eax + edi + 4]
mov eax, dword [esp + 0x24]
call fcn.004164e9
mov byte [ebx + 6], al
cmp byte [ebx + 6], 0
je 0x41b194
lea eax, [edi + 0x2a8]
call fcn.004067d5
test al, al
jne 0x41b194
lea eax, [edi + 0x2f8]
call fcn.0040691c
test al, al
jne 0x41b194
lea eax, [edi + 0x2d0]
call fcn.00406875
test al, al
jne 0x41b194
cmp dword [edi + 0xe4], 0
je 0x41b0d9
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
add edi, 0xd0
mov dword [esp + 0x28], eax
push edi
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x40]
call fcn.0041b91d
lea edi, [esp + 0x28]
mov esi, eax
call fcn.0041b99e
mov edi, dword [esp + 0x14]
test al, al
je 0x41b194
cmp byte [edi + 0x2a0], 0
jne 0x41b0ff
cmp byte [edi + 0x141], 0
jne 0x41b0ff
mov eax, dword [ebx + 0xc8]
test eax, eax
jl 0x41b0ff
cmp dword [esp + 0x18], eax
jge 0x41b194
cmp dword [edi + 0xe4], 0
je 0x41b123
add edi, 0xd0
push edi
lea edi, [esp + 0x6c]
lea ebx, [esp + 0x3c]
call fcn.0041b863
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x141], 0
je 0x41b13e
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 0x8c]
call fcn.0041a7e1
jmp 0x41b19c
cmp byte [edi + 0x140], 0
jne 0x41b178
lea edi, [ebx + 0x74]
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x30]
call fcn.0040bf3e
push dword [esp + 0x34]
lea eax, [esp + 0x24]
push dword [esp + 0x34]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, edi
call fcn.0041ade9
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
jmp 0x41b185
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 0x74]
call fcn.0041a7e1
cmp byte [edi + 0x2a0], 0
jne 0x41b19c
inc dword [esp + 0x18]
jmp 0x41b19c
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
inc dword [esp + 0x1c]
cmp byte [ebx + 6], 0
jne 0x41afc1
or dword [esp + 0x5a8], 0xffffffff
lea eax, [esp + 0x38]
push eax
mov byte [ebx + 5], 0
call fcn.0041b83b
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4