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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
xor edx, edx
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
cmp eax, ecx
jbe 0x411abc
mov dword [esp + 0x20], edx
div ecx
or byte [esi + 0x13], 4
mov edx, dword [ebx + 0x14]
lea ecx, [edx - 1]
lea edi, [eax - 1]
not edi
and edi, ecx
mov ecx, dword [esi + 0x18]
inc edi
mov dword [esp + 0x24], edi
cmp edx, ecx
jbe 0x4118ae
mov ebx, edx
sub ebx, edi
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x4118c7
lea edx, [edi + eax - 1]
cmp edx, ecx
jbe 0x4118c1
sub ecx, edi
inc ecx
mov dword [esp + 0x10], ecx
mov ebx, ecx
jmp 0x4118c7
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0x14], 0
test ebx, ebx
jle 0x411aad
mov ebx, edi
lea esp, [esp]
cmp dword [esp + 0x18], 0
jne 0x411aad
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x14]
je 0x41196c
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x41196c
mov eax, ebx
call fcn.0040b540
test eax, eax
je 0x41196c
mov edi, dword [esi + 0xdc]
lea ecx, [esp + 0x28]
push ecx
push 0
push ebx
call fcn.0040bbd0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41193a
test byte [eax + 0x18], 4
je 0x411935
mov dword [esp + 0x20], 1
call fcn.004113b0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
inc ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x4118e0
cmp dword [esp + 0x18], 0
jne 0x411aad
cmp dword [esp + 0x20], 0
je 0x411aad
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x4119c4
mov eax, dword [0x4d7828]
cdq
idiv dword [esi + 0x98]
inc eax
cmp ebx, eax
je 0x41193e
push 0
lea edx, [esp + 0x20]
push edx
push ebx
push esi
call fcn.00411050
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41193e
mov eax, dword [esp + 0x1c]
call fcn.00411650
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test byte [eax + 0x18], 4
je 0x4119b5
mov dword [esp + 0x20], 1
call fcn.004113b0
jmp 0x41193e
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
add eax, edi
mov edi, dword [esi + 0xdc]
push 0
push eax
call fcn.0040bbd0
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x411a9a
or word [eax + 0x18], 4
mov cx, word [eax + 0x18]
mov edi, dword [eax + 0x10]
test cl, 0x40
je 0x411a3a
dec dword [edi + 0x78]
mov edx, dword [edi + 0x88]
mov dword [eax + 0xc], edx
mov ebx, dword [edi + 0x3c]
mov dword [edi + 0x88], eax
mov ecx, dword [eax + 4]
mov esi, dword [ebx]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0049f7f0
push edx
mov edx, dword [esi + 0x48]
push eax
push ebx
call edx
mov esi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x411a3f
call fcn.0040bd50
cmp dword [edi + 0x78], 0
jne 0x411a9a
mov eax, dword [edi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x411a9a
mov al, byte [edi + 0xf]
cmp al, 6
je 0x411a93
test al, al
je 0x411a93
cmp al, 2
jb 0x411a7f
mov eax, dword [0x4de2b4]
test eax, eax
je 0x411a6b
call eax
mov eax, edi
call fcn.00411da0
mov eax, dword [0x4de2b8]
test eax, eax
je 0x411a93
call eax
jmp 0x411a93
cmp byte [edi + 4], 0
jne 0x411a93
push 0
push 0
mov ebx, edi
call fcn.0040e380
add esp, 8
mov ebx, edi
call fcn.0040e220
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x4119c0
and byte [esi + 0x13], 0xfb
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
call fcn.00411650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret