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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60684b
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7664f8]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
lea ecx, [esp + 0x20]
call fcn.00424100
xor ebx, ebx
mov dword [esp + 0x1a8], ebx
mov eax, dword [0x7e9e40]
mov ecx, dword [0x7e9e3c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 8
mov dword [esp + 0x6c], 0x10
mov dword [esp + 0x70], 0x18
mov dword [esp + 0x74], 0x20
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], 0x30
mov dword [esp + 0x80], 0x31
mov dword [esp + 0x84], 0x32
mov dword [esp + 0x88], 0x33
mov dword [esp + 0x8c], 0x34
mov dword [esp + 0x90], 0x35
mov dword [esp + 0x94], 0x36
mov dword [esp + 0x98], 0xffffffff
mov byte [esp + 0x1f], bl
mov ebp, eax
cmp ecx, eax
jbe 0x41357b
call fcn.0055cb74
mov eax, dword [0x7e9e40]
mov ecx, dword [0x7e9e3c]
mov esi, dword [0x7e9e30]
mov edi, ecx
cmp ecx, eax
jbe 0x41358c
call fcn.0055cb74
mov eax, dword [0x7e9e30]
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, 0x7e9e30
call fcn.00424650
mov eax, dword [0x7e9ce0]
mov edx, dword [0x7e9c64]
lea ecx, [edx + eax*2]
add ecx, eax
cmp ecx, 0xd
je 0x413623
call fcn.00413050
test eax, eax
mov eax, dword [esp + 0x2c]
jle 0x413605
cmp eax, ebx
je 0x4135d3
push eax
call fcn.0055c72e
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0055c72e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x413612
push eax
call fcn.0055c72e
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jmp 0x413c35
push 0x7e9c20
lea esi, [esp + 0x24]
call fcn.004127e0
mov eax, 4
mov ecx, 0x40
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
sar eax, 2
xor esi, esi
cmp eax, ebx
jle 0x413683
cmp esi, eax
jb 0x413664
call fcn.0055cb74
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
dec dword [esp + eax*4 + 0x9c]
lea eax, [esp + eax*4 + 0x9c]
mov eax, dword [esp + 0x30]
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jl 0x413659
mov edx, dword [0x7e9c64]
xor eax, eax
xor ecx, ecx
cmp edx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jle 0x4136cc
mov esi, 0x7e9c20
cmp ecx, ebx
jl 0x4136b2
cmp ecx, edx
jge 0x4136b2
mov eax, esi
jmp 0x4136b4
xor eax, eax
mov eax, dword [eax]
sar eax, 8
and eax, 3
inc dword [esp + eax*4 + 0x40]
lea eax, [esp + eax*4 + 0x40]
inc ecx
add esi, 4
cmp ecx, edx
jl 0x4136a6
mov eax, dword [esp + 0x40]
cdq
mov esi, 3
idiv esi
xor ecx, ecx
mov dword [esp + 0x40], edx
cmp edx, ebx
je 0x4136e5
lea ecx, [esi - 2]
mov eax, dword [esp + 0x44]
cdq
idiv esi
mov dword [esp + 0x44], edx
cmp edx, ebx
je 0x4136f5
inc ecx
mov eax, dword [esp + 0x48]
cdq
idiv esi
mov dword [esp + 0x48], edx
cmp edx, ebx
je 0x413705
inc ecx
mov eax, dword [esp + 0x4c]
cdq
idiv esi
mov dword [esp + 0x4c], edx
cmp edx, ebx
je 0x413715
inc ecx
cmp ecx, 2
jg 0x41385c
xor eax, eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
jmp 0x413740
mov edx, dword [esp + 0x38]
cmp dword [esp + edx*4 + 0x40], 0
je 0x41383f
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp edx, 3
setl al
lea eax, [eax + eax + 7]
mov dword [esp + 0x50], eax
jmp 0x413770
cmp dword [ebx], 0
mov dword [esp + 0x5c], ebp
jle 0x413830
push 0x7e9c20
mov edi, 0x7e9a2c
call fcn.00414b40
mov ecx, dword [0x7e9a70]
mov eax, ebp
shl eax, 4
cmp ecx, 0x10
jge 0x4137ac
lea edx, [ecx*4 + 0x7e9a2c]
inc ecx
mov dword [0x7e9a70], ecx
mov dword [edx], eax
mov esi, 0x7e9a2c
mov dword [0x7e9a6c], eax
call fcn.00412730
call fcn.00414110
test al, al
je 0x413830
push 0x7e9c20
mov edi, esi
call fcn.00414b40
mov edx, dword [0x7e9e3c]
test edx, edx
jne 0x4137de
xor ecx, ecx
jmp 0x4137e9
mov ecx, dword [0x7e9e44]
sub ecx, edx
sar ecx, 2
mov eax, dword [0x7e9e40]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x413805
mov dword [eax], ebp
add eax, 4
mov dword [0x7e9e40], eax
jmp 0x41382b
mov esi, eax
cmp edx, eax
jbe 0x413810
call fcn.0055cb74
mov eax, dword [0x7e9e30]
lea ecx, [esp + 0x5c]
push ecx
push esi
push eax
lea edx, [esp + 0x60]
push edx
mov ecx, 0x7e9e30
call fcn.00424590
mov byte [esp + 0x1f], 1
inc ebp
add ebx, 4
sub dword [esp + 0x50], 1
jne 0x413770
mov eax, dword [esp + 0x3c]
inc dword [esp + 0x38]
add dword [esp + 0x18], 0x40
add eax, 0x10
cmp eax, 0x40
mov dword [esp + 0x3c], eax
jl 0x413740
push 0x7e9c20
mov edi, 0x7e9a2c
call fcn.00414b40
xor esi, esi
cmp byte [esp + 0x1f], 0
je 0x4138b7
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x413885
push eax
call fcn.0055c72e
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0055c72e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x7e9aec]
xor eax, eax
cmp edx, esi
jle 0x4138da
mov ecx, 0x7e9a88
test dword [ecx], 0xf0000
jne 0x413903
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x4138c8
cmp edx, esi
je 0x41392a
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4138ed
push eax
call fcn.0055c72e
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
push edx
jmp 0x413c3a
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x413914
push eax
call fcn.0055c72e
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
push ecx
jmp 0x413c3a
mov ebx, dword [0x7e9a70]
or edx, 0xffffffff
xor edi, edi
xor esi, esi
lea ecx, [edx + 3]
test ebx, ebx
jle 0x413a36
mov ebp, 0x7e9a2c
test esi, esi
jl 0x413953
cmp esi, ebx
jge 0x413953
mov eax, ebp
jmp 0x413955
xor eax, eax
mov eax, dword [eax]
sar eax, 4
and eax, 0x3f
cmp edx, eax
je 0x413975
cmp ecx, 2
je 0x41396c
mov dword [esp + 0x18], edx
add edi, ecx
mov edx, eax
mov ecx, 1
jmp 0x413976
inc ecx
inc esi
add ebp, 4
cmp esi, ebx
jl 0x413947
cmp ecx, 2
je 0x413989
mov dword [esp + 0x18], edx
add edi, ecx
cmp edi, 1
jne 0x413a36
mov edx, dword [0x7e9e3c]
test edx, edx
jne 0x4139a0
xor ecx, ecx
jmp 0x4139ab
mov ecx, dword [0x7e9e44]
sub ecx, edx
sar ecx, 2
mov eax, dword [0x7e9e40]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x4139cb
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
add eax, 4
mov dword [0x7e9e40], eax
jmp 0x4139f1
mov esi, eax
cmp edx, eax
jbe 0x4139d6
call fcn.0055cb74
mov eax, dword [0x7e9e30]
lea edx, [esp + 0x18]
push edx
push esi
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, 0x7e9e30
call fcn.00424590
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x413a04
push eax
call fcn.0055c72e
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.0055c72e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
or edi, 0xffffffff
cmp ebx, esi
mov dword [esp + 0x18], esi
jle 0x413aa2
mov ebp, 0x7e9a2c
test esi, esi
jl 0x413a54
cmp esi, ebx
jge 0x413a54
mov eax, ebp
jmp 0x413a56
xor eax, eax
mov edx, dword [eax]
mov ecx, edx
sar ecx, 4
mov eax, ecx
and eax, 0x3f
cmp edi, eax
jne 0x413a6c
inc dword [esp + 0x18]
jmp 0x413a6e
mov edi, eax
and edx, 0x300
cmp edx, 0x300
jge 0x413a85
test cl, 7
jne 0x413c16
inc esi
add ebp, 4
cmp esi, ebx
jl 0x413a48
mov eax, dword [esp + 0x18]
cmp eax, 2
jge 0x413c16
test eax, eax
jne 0x413b57
mov eax, dword [0x7e9e40]
xor ebp, ebp
lea esi, [esp + 0x64]
xor ebx, ebx
nop
mov edx, dword [0x7e9e3c]
cmp edx, ebx
jne 0x413abe
xor ecx, ecx
jmp 0x413ac9
mov ecx, dword [0x7e9e44]
sub ecx, edx
sar ecx, 2
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x413ae2
mov edx, dword [esi]
mov dword [eax], edx
add eax, 4
mov dword [0x7e9e40], eax
jmp 0x413b09
mov edi, eax
cmp edx, eax
jbe 0x413aed
call fcn.0055cb74
mov eax, dword [0x7e9e30]
push esi
push edi
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, 0x7e9e30
call fcn.00424590
mov eax, dword [0x7e9e40]
inc ebp
cmp dword [esp + ebp*4 + 0x64], ebx
lea esi, [esp + ebp*4 + 0x64]
jge 0x413ab0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x413b25
push eax
call fcn.0055c72e
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push ecx
call fcn.0055c72e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
xor edx, edx
mov edi, 0x7e9a2c
test edx, edx
jl 0x413b6c
cmp edx, ebx
jge 0x413b6c
mov eax, edi
jmp 0x413b6e
xor eax, eax
mov eax, dword [eax]
mov ecx, dword [esp + esi*4 + 0x64]
sar eax, 4
and eax, 0x3f
cmp eax, ecx
jg 0x413baf
jne 0x413b81
inc esi
inc edx
add edi, 4
cmp edx, ebx
jl 0x413b60
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x413b9c
push eax
call fcn.0055c72e
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
push edx
jmp 0x413b36
mov edx, dword [0x7e9e3c]
xor ebx, ebx
lea edi, [esp + esi*4 + 0x64]
cmp edx, ebx
jne 0x413bc3
xor ecx, ecx
jmp 0x413bce
mov ecx, dword [0x7e9e44]
sub ecx, edx
sar ecx, 2
mov eax, dword [0x7e9e40]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x413bef
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
mov dword [0x7e9e40], eax
jmp 0x413b14
mov esi, eax
cmp edx, eax
jbe 0x413bfa
call fcn.0055cb74
mov eax, dword [0x7e9e30]
push edi
push esi
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, 0x7e9e30
call fcn.00424590
jmp 0x413b14
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x413c29
push eax
call fcn.0055c72e
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
push eax
call fcn.0055c72e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret