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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
and dword [esp + 0x10], eax
and ecx, 1
push edi
mov edi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
cmp edi, 1
jbe 0x41d5e2
cmp byte [ebx + 0x16], al
je 0x41d5e2
cmp byte [ebx + 0x10], 1
je 0x41d5dd
test byte [ebp + 0xc], 2
je 0x41d5e2
xor edx, edx
inc edx
jmp 0x41d5e4
xor edx, edx
mov dword [esp + 0x20], edx
cmp edi, 1
ja 0x41d600
test edi, edi
jne 0x41d600
mov ecx, 0xbd05
call fcn.00461cb5
jmp 0x41d891
cmp dword [ebx + 0x28], eax
je 0x41d60d
mov esi, dword [ebx + 0x28]
jmp 0x41d761
test edx, edx
je 0x41d6f0
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x41d640
lea eax, [esp + 0x14]
mov edx, edi
push eax
call fcn.0041fabc
mov esi, eax
pop ecx
test esi, esi
jne 0x41d870
cmp dword [esp + 0x14], eax
jne 0x41d6f0
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x10]
mov esi, dword [ebx + 0x3c]
lea ecx, [edi - 1]
and dword [esp + 0x10], 0
push edx
push eax
mov edi, dword [esi]
push 0
cdq
push ecx
push edx
push eax
call fcn.0047cf00
push edx
push eax
push esi
call dword [edi + 0x44]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41d870
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x41d6f0
cmp byte [ebx + 0x10], 1
jbe 0x41d6c1
mov edx, edi
mov ecx, ebx
call fcn.0041d898
mov dword [esp + 0x18], eax
test eax, eax
je 0x41d6bd
mov eax, dword [ebx + 0x98]
lea ecx, [edi - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.0047cf00
mov ecx, dword [ebx + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.004134a3
jmp 0x41d6d2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov edx, edi
push ecx
push eax
mov ecx, ebx
call fcn.0041c6c3
mov esi, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41d6e8
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
jmp 0x41d891
test esi, esi
jne 0x41d870
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x4c3b7c]
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41d745
mov ecx, dword [ebx + 0xcc]
lea eax, [esp + 0x1c]
push eax
mov edx, edi
call fcn.00419a91
mov esi, eax
pop ecx
test esi, esi
jne 0x41d870
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41d745
mov edi, dword [ebp + 8]
push 7
pop esi
and dword [edi], eax
jmp 0x41d873
mov ecx, dword [ebx + 0xcc]
mov edx, edi
push eax
call fcn.00419b67
pop ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
test esi, esi
jne 0x41d870
cmp dword [eax + 0x10], esi
je 0x41d77d
test ecx, ecx
jne 0x41d77d
inc dword [ebx + 0xb8]
jmp 0x41d6e1
mov dword [eax + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x41d859
mov eax, dword [0x4c4814]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x41d859
cmp byte [ebx + 0xf], 0
jne 0x41d7ff
cmp dword [ebx + 0x18], edi
jb 0x41d7ff
test ecx, ecx
jne 0x41d7ff
mov eax, dword [ebx + 0x3c]
cmp dword [eax], esi
je 0x41d7ff
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x41d7de
cmp dword [esp + 0x20], esi
jne 0x41d7de
lea eax, [esp + 0x14]
mov edx, edi
push eax
call fcn.0041fabc
mov esi, eax
pop ecx
test esi, esi
jne 0x41d865
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
inc dword [ebx + 0xbc]
call fcn.0041be83
mov esi, eax
test esi, esi
je 0x41d6e1
jmp 0x41d869
cmp edi, dword [ebx + 0x9c]
jbe 0x41d80c
push 0xd
pop esi
jmp 0x41d865
test ecx, ecx
je 0x41d83e
mov eax, dword [0x4c7e10]
test eax, eax
je 0x41d81b
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x41d82a
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.004194f8
mov edx, edi
mov ecx, ebx
call fcn.0041b291
mov eax, dword [0x4c7e14]
test eax, eax
je 0x41d83e
call eax
push dword [ebx + 0x98]
mov edi, dword [esp + 0x14]
push esi
push dword [edi + 4]
call fcn.0047ed30
add esp, 0xc
jmp 0x41d6e1
mov ecx, 0xbd5e
call fcn.00461cb5
mov esi, eax
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00419bab
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x41d88c
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41d88c
mov ecx, ebx
call fcn.0041b525
and dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret