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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41079f
push eax
call dword [0x5866bc]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x4107ba
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x4107ba
push eax
call fcn.004167a0
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x4107d1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4107d1
push eax
call dword [0x5866bc]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4107e6
cmp esi, 5
je 0x4107e6
cmp esi, 6
jne 0x410cd9
cmp dword [ebx], 0
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x30], 0
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
je 0x410815
cmp byte [edx + 0x14], 2
jne 0x410815
mov esi, 5
jmp 0x410830
xor esi, esi
cmp byte [ecx + 8], 0
jne 0x410830
push esi
push ecx
call fcn.00435440
add esp, 8
mov dword [ebp - 0x30], 1
mov esi, eax
cmp dword [ebx + 0xc], 0
jne 0x41085a
test esi, esi
jne 0x41088f
mov eax, dword [ebx + 0x18]
push esi
push 0xffffffffffffffff
mov eax, dword [eax + 4]
push dword [eax + 0x20]
push dword [ebx + 4]
call fcn.00437d70
add esp, 0x10
cmp eax, 7
jne 0x41085e
mov esi, eax
jmp 0x41088f
test esi, esi
jne 0x41088f
cmp dword [ebx + 0xc], 0
jne 0x41088f
push 2
push dword [ebx + 4]
call fcn.00435440
mov esi, eax
add esp, 8
test esi, esi
jne 0x41088f
lea eax, [ebx + 8]
mov dword [ebx + 0xc], 1
push eax
push 1
push dword [ebx + 4]
call fcn.00436390
add esp, 0xc
mov eax, dword [ebx + 0x18]
push edi
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edi, dword [edx + 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edi
mov ecx, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], ecx
movzx eax, byte [eax + 5]
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4108c4
cmp eax, 5
jne 0x4108c4
cmp edi, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x2c]
xor eax, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x4108da
cmp eax, ecx
jge 0x410949
mov edi, dword [ebx + 0x10]
cmp edi, edx
ja 0x410949
test esi, esi
jne 0x410984
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x586770]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x41093d
push 2
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push edi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41093d
mov eax, dword [ebp - 0x10]
push esi
push dword [eax + 4]
push edi
push ebx
call fcn.00413b00
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41093d
push eax
call fcn.0044c220
add esp, 4
mov eax, dword [ebp - 0x18]
inc dword [ebx + 0x10]
inc eax
mov edx, dword [ebp - 4]
jmp 0x4108cc
test esi, esi
jne 0x410984
mov eax, edx
mov dword [ebx + 0x24], edx
sub eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x10], edx
ja 0x41098d
cmp dword [ebx + 0x28], esi
jne 0x410caa
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebx + 0x2c], eax
mov dword [ecx + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x410caa
cmp esi, 0x65
jne 0x410caa
test edx, edx
jne 0x4109e9
mov edi, dword [ebx + 4]
cmp byte [edi + 9], dl
je 0x4109aa
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x4109aa
push edi
call fcn.004167a0
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
push dword [edi + 4]
call fcn.00429260
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x4109d6
add dword [edi + 0xc], 0xffffffff
jne 0x4109d6
push edi
call fcn.0046b6e0
add esp, 4
mov edi, 1
mov dword [ebp - 4], edi
test esi, esi
je 0x4109ec
cmp esi, 0x65
jne 0x410a00
jmp 0x4109ec
mov edi, dword [ebp - 4]
mov eax, dword [ebx + 8]
inc eax
push eax
push 1
push dword [ebx + 4]
call fcn.00438170
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x410caa
mov eax, dword [ebx]
test eax, eax
je 0x410a17
push eax
call fcn.004507c0
add esp, 4
cmp dword [ebp - 0x2c], 5
jne 0x410aa6
mov ecx, dword [ebx + 4]
mov edx, 0xffdf
push 0
push ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
and word [eax + 0x16], dx
call fcn.00435440
mov esi, eax
add esp, 8
test esi, esi
jne 0x410a92
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x28], eax
cmp byte [eax + 0x12], 2
jne 0x410a5f
cmp byte [eax + 0x13], 2
je 0x410a92
push 2
push dword [ebp - 0x2c]
call fcn.00435440
mov esi, eax
add esp, 8
test esi, esi
jne 0x410a92
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
push dword [eax + 0x48]
call fcn.0044c2b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x410a92
mov eax, dword [ebp - 0x28]
mov word [eax + 0x12], 0x202
mov eax, dword [ebp - 0x10]
mov ecx, 0xffdf
and word [eax + 0x16], cx
test esi, esi
jne 0x410caa
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x410ae8
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov ecx, eax
lea eax, [ecx - 1]
add eax, edi
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x586770]
div dword [ecx + 0x20]
lea ecx, [edi - 1]
inc eax
cmp edi, eax
mov eax, dword [ebp - 4]
cmovne ecx, edi
mov dword [ebp - 0x2c], ecx
mov edi, ecx
mov ecx, dword [ebp - 0x14]
jmp 0x410af3
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
imul edi, eax
mov edx, dword [ebp - 8]
cmp edx, ecx
jge 0x410dc5
imul edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
cmp edi, eax
ja 0x410b71
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x586770]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x410b67
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push edi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x410b67
push dword [ebp - 0x18]
call fcn.0044c2b0
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x410b67
push eax
call fcn.0044c220
add esp, 4
mov eax, dword [ebp - 0x24]
inc edi
test esi, esi
je 0x410b15
jmp 0x410b86
test esi, esi
jne 0x410b86
mov eax, dword [ebp - 0xc]
push 1
push esi
push eax
call fcn.0044b050
add esp, 0xc
mov esi, eax
mov eax, dword [0x586770]
add eax, dword [ebp - 0x14]
cdq
mov ecx, edx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
cmp ecx, edx
jg 0x410ba5
jl 0x410bae
cmp eax, dword [ebp - 4]
jb 0x410bae
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [0x586770]
add eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x24], eax
mov edi, eax
mov dword [ebp - 0x10], edx
mov ecx, edx
test esi, esi
jne 0x410caa
nop dword [eax]
cmp ecx, dword [ebp - 0x18]
jg 0x410d24
jl 0x410be4
cmp edi, dword [ebp - 0x1c]
jae 0x410d24
mov ebx, dword [ebp - 8]
lea esi, [ebp - 0x14]
push 0
push esi
mov eax, ebx
mov dword [ebp - 0x14], 0
cdq
push edx
push eax
push ecx
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
call fcn.004db850
inc eax
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax + 0xc8]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x410c38
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push edi
push ebx
mov ecx, dword [edx]
push dword [eax + 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x410c90
test byte [ecx + 0x1c], 0x20
je 0x410c87
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004db9e0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [ebp - 0x24]
add esp, 0x10
jmp 0x410c90
push ecx
call fcn.0044cef0
add esp, 4
add edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
adc ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x410bd0
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x30], 0
pop edi
je 0x410cc8
push 0
push dword [ebx + 0x18]
call fcn.00435a40
push 0
push dword [ebx + 0x18]
call fcn.00435ae0
add esp, 0x10
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx]
test eax, eax
je 0x410cf0
mov eax, dword [eax + 0xc]
test eax, eax
je 0x410cf0
push eax
call dword [0x5866c4]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x410d08
add dword [eax + 0xc], 0xffffffff
jne 0x410d08
push eax
call fcn.0046b6e0
add esp, 4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x410d1c
push eax
call dword [0x5866c4]
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x410ca7
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x410ca7
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x38], ecx
jl 0x410d6b
jg 0x410d5a
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x3c], eax
jbe 0x410d6b
mov eax, dword [ebx]
push ecx
push dword [ebp - 4]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x410ca7
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x3c]
cmp dword [ecx], esi
je 0x410d9a
mov eax, dword [ecx]
push esi
push 0x15
push ecx
mov eax, dword [eax + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
jne 0x410d96
xor esi, esi
jmp 0x410d9a
test esi, esi
jne 0x410dc0
cmp byte [ebx + 7], 0
jne 0x410dc0
movzx ecx, byte [ebx + 0xa]
mov edx, dword [ebx + 0x3c]
test ecx, ecx
je 0x410dbe
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov ebx, dword [ebp + 8]
add esp, 8
mov esi, eax
jmp 0x410dda
xor esi, esi
mov ebx, dword [ebp + 8]
jmp 0x410dda
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
mov dword [eax + 0x18], edi
call fcn.0044b050
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x410caa
push esi
push dword [ebx + 4]
call fcn.00435ae0
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
jmp 0x410caa