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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xd8], eax
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
lea eax, [ebp - 0xe8]
mov esi, edx
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
call fcn.004172e5
pop ecx
lea eax, [ebp - 0xe8]
call fcn.00401ca2
cmp eax, ebx
jne 0x4133e9
mov dword [edi], 0x80004005
lea esi, [ebp - 0xe8]
call fcn.004054aa
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004301f3
leave
ret 0x10
mov ecx, dword [esi + 0x30]
dec ecx
mov dword [ebp - 0xec], ebx
je 0x4134ac
dec ecx
dec ecx
jne 0x4134b3
lea edi, [esi + 0x6c]
mov eax, edi
call fcn.00401ca2
test eax, eax
je 0x413485
mov eax, edi
call fcn.00401ca2
dec eax
mov dword [ebp - 0xfc], eax
js 0x4134b3
mov esi, dword [ebp - 0xd0]
push dword [ebp - 0xfc]
add esi, 0x6c
call fcn.00401cb8
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004172e5
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0xec]
call fcn.00414ad9
test eax, eax
lea esi, [ebp - 0x14]
je 0x413478
call fcn.004054aa
dec dword [ebp - 0xfc]
jns 0x413423
jmp 0x41347d
call fcn.004054aa
mov esi, dword [ebp - 0xd0]
jmp 0x4134b3
lea eax, [ebp - 0xe8]
push eax
lea eax, [esi + 0x5c]
push eax
lea edi, [ebp - 0xec]
call fcn.00414ad9
cmp eax, ebx
je 0x4134b3
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
jmp 0x4133cb
dec eax
mov dword [ebp - 0xec], eax
push dword [ebp - 0xec]
lea eax, [ebp - 0xe8]
push ebx
call fcn.00411e4e
lea eax, [ebp - 0xe8]
push eax
call fcn.00416f3d
lea eax, [ebp - 0xe8]
add esp, 0xc
push eax
lea edi, [ebp - 0x3c]
call fcn.00417271
cmp dword [esi + 0x30], 2
pop ecx
mov byte [ebp - 0xca], bl
jne 0x4135a6
xor edi, edi
inc edi
cmp dword [ebp - 0x28], edi
jbe 0x4135a6
lea eax, [ebp - 0x3c]
call fcn.00405567
cmp word [eax], 0x5f
jne 0x4135a6
push 2
pop edi
cmp dword [ebp - 0x28], edi
jne 0x413528
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
jne 0x413544
lea eax, [ebp - 0x3c]
call fcn.00405567
cmp word [eax], 0x5c
je 0x413544
lea eax, [ebp - 0x3c]
call fcn.00405567
cmp word [eax], 0x2f
jne 0x4135a6
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], 7
call fcn.00401cd7
push 0x3a
lea esi, [ebp - 0x20]
call fcn.00402cee
mov eax, esi
push eax
call fcn.0040da38
test al, al
pop ecx
je 0x413590
xor edi, edi
inc edi
lea eax, [ebp - 0x3c]
call fcn.00405567
mov word [eax], 0x3a
mov byte [ebp - 0xca], 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401d5f
cmp byte [ebp - 0xca], bl
jne 0x41361c
xor ebx, ebx
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0x39], bl
je 0x41361e
mov esi, dword [ebp - 0xe4]
cmp esi, dword [ebp - 0xe0]
jbe 0x4135c4
call fcn.004300e0
push esi
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0xd0]
add eax, 0x7c
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xe8]
call fcn.004055c1
lea eax, [ebp - 0xe8]
push eax
call fcn.00416f3d
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea edi, [ebp - 0x118]
call fcn.00417271
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
push ecx
xor ebx, ebx
call fcn.00401cd7
push ebx
push 1
mov esi, edi
call fcn.00401d5f
xor ebx, ebx
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
jne 0x413651
lea eax, [ebp - 0xe8]
call fcn.00401ca2
test eax, eax
je 0x413651
mov eax, dword [ebp - 0xe0]
push eax
add eax, 0xffffffe4
call fcn.0040574a
sub dword [ebp - 0xe0], 0x1c
mov al, byte [esi + 0x9c]
cmp al, bl
mov edx, dword [ebp - 0xd0]
mov cl, 1
je 0x41366b
cmp dword [edx + 0x30], 1
jne 0x41366b
xor cl, cl
cmp dword [edx + 0x2c], 2
jne 0x413673
xor cl, cl
cmp cl, bl
je 0x413872
cmp byte [ebp - 0xca], bl
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
mov byte [ebp - 0xc9], bl
je 0x4136d3
cmp al, bl
lea eax, [ebp - 0x20]
je 0x4136ad
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
call fcn.00401cd7
jmp 0x4136b7
push eax
lea edi, [ebp - 0x3c]
call fcn.0040cb04
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040db02
test al, al
pop ecx
jne 0x4136cf
lea ecx, [ebp - 0x20]
call fcn.0040ca27
jmp 0x4136e4
mov al, 1
jmp 0x4136eb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xe8]
push eax
push edx
call fcn.004127a2
mov byte [ebp - 0xc9], 1
cmp al, bl
jne 0x413751
lea esi, [ebp - 0x118]
call fcn.0040e15e
cmp dword [eax + 0x18], 8
jb 0x413705
mov eax, dword [eax + 4]
jmp 0x413708
add eax, 4
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x413714
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x271a
lea ecx, [ebp - 0x5c]
call fcn.004044fe
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.0041498f
push ebx
push 1
lea esi, [ebp - 0x5c]
call fcn.00401d5f
cmp byte [ebp - 0xca], bl
jne 0x413828
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
je 0x413867
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0x58], bl
jne 0x413788
cmp byte [eax + 0x59], bl
jne 0x413788
cmp byte [eax + 0x5a], bl
je 0x413867
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x7c], bx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], bl
push eax
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 7
call fcn.00401cd7
mov ecx, dword [ebp - 0xd0]
cmp byte [ecx + 0x58], bl
mov eax, dword [ebp - 0xf4]
je 0x4137ea
cmp byte [eax + 0x98], bl
je 0x4137ea
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x5c], 1
cmp byte [ecx + 0x59], bl
je 0x41380a
cmp byte [eax + 0x99], bl
je 0x41380a
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x80]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 1
cmp byte [ecx + 0x5a], bl
je 0x413835
cmp byte [eax + 0x9a], bl
je 0x413835
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x4c], edx
jmp 0x413844
cmp byte [ebp - 0xc9], bl
je 0x413867
jmp 0x41375d
mov eax, dword [ecx + 0x98]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x9c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
lea esi, [ecx + 0x12c]
mov byte [ebp - 0x44], 1
call fcn.00414fc1
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.00401d5f
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401d5f
mov eax, dword [ebp - 0xd8]
call fcn.00409172
cmp byte [ebp - 0xca], bl
lea eax, [ebp - 0x3c]
je 0x413899
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.00401cd7
jmp 0x4138ce
push eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x118]
add eax, 0x3c
push ecx
call fcn.00409696
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.00401cd7
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
je 0x4138f4
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401d5f
jmp 0x4133cb
cmp byte [esi + 0x28], bl
jne 0x413e28
lea eax, [ebp - 0xc8]
call fcn.0040e4b1
push dword [ebp - 0xd8]
mov byte [ebp - 0xca], bl
call fcn.0040da38
test al, al
pop ecx
je 0x413fc1
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xd8]
call fcn.0040e484
test al, al
pop ecx
pop ecx
je 0x413fc1
mov edi, dword [ebp - 0xd0]
mov eax, dword [edi + 0x2c]
cmp eax, 1
je 0x413951
cmp eax, 2
jne 0x413995
cmp dword [edi + 0x34], 1
ja 0x413995
lea eax, [ebp - 0xc8]
call fcn.0040e587
mov cl, byte [esi + 0x9a]
neg cl
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
call fcn.00429302
test eax, eax
jg 0x413995
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040e4df
jmp 0x4138e4
mov eax, dword [edi + 0x34]
sub eax, ebx
je 0x4139a6
dec eax
dec eax
jne 0x413b45
jmp 0x41397d
lea ecx, [ebp - 0xc8]
call fcn.0040e579
mov dword [ebp - 0x128], eax
mov eax, ecx
mov dword [ebp - 0x124], edx
call fcn.0040e587
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
lea eax, [edi + 0x1c]
mov byte [ebp - 0xc9], bl
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
call fcn.00411488
test al, al
je 0x413a46
lea eax, [ebp - 0x68]
call fcn.0040e8f4
lea eax, [edi + 0x1c]
call fcn.00415c75
mov edx, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
push 7
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x1c]
test eax, eax
jne 0x413a3e
lea eax, [ebp - 0x68]
call fcn.00415c75
test eax, eax
setne byte [ebp - 0xc9]
cmp byte [ebp - 0xc9], bl
je 0x413a3e
lea ecx, [ebp - 0x68]
call fcn.0040e58b
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edx
lea eax, [ebp - 0x68]
call fcn.0040e90d
lea eax, [edi + 0x118]
cmp eax, ebx
mov dword [ebp - 0xd0], eax
je 0x413a5b
call fcn.0040f83c
lea eax, [edi + 0x20]
call fcn.00415c75
push dword [ebp - 0xd8]
mov dl, byte [ebp - 0xc9]
neg dl
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xf8]
push 1
mov dword [ebp - 0xfc], eax
mov eax, dword [eax]
sbb edx, edx
and edx, ecx
mov cl, byte [esi + 0x9a]
neg cl
push edx
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xfc]
call dword [eax + 0x18]
cmp eax, ebx
je 0x413ae4
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
cmp eax, ebx
je 0x413985
call fcn.0040f84a
jmp 0x413985
mov eax, dword [ebp - 0xec]
cmp eax, 7
ja 0x413d3a
jmp dword [eax*4 + 0x41340e]
cmp dword [ebp - 0xd0], ebx
je 0x413985
mov eax, dword [ebp - 0xd0]
jmp 0x413ada
mov eax, dword [edi + 0x34]
cmp eax, 3
jne 0x413d5c
mov ecx, dword [ebp - 0xd8]
call fcn.0041085e
test al, al
jne 0x413e1d
push 0x271b
call fcn.00405aa0
lea ecx, [ebp - 0x118]
call fcn.004104ad
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x118]
call fcn.00409696
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.0041498f
cmp eax, ebx
push ebx
lea esi, [ebp - 0x5c]
push 1
je 0x413d4b
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401d5f
jmp 0x413985
lea eax, [ebp - 0xc8]
call fcn.0040e4df
push edi
push ebx
jmp 0x4138e7
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413b06
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413bc2
cmp eax, 4
jne 0x413e34
mov eax, dword [ebp - 0xd8]
lea esi, [ebp - 0x20]
call fcn.00401c83
mov ecx, esi
call fcn.0041085e
test al, al
jne 0x413df6
push 0x271b
call fcn.00405aa0
lea ecx, [ebp - 0x118]
call fcn.004104ad
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x118]
call fcn.00409696
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.0041498f
cmp eax, ebx
push ebx
push 1
lea esi, [ebp - 0x5c]
je 0x413de8
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401d5f
push ebx
push 1
lea esi, [ebp - 0x20]
jmp 0x413bc2
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413dd8
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
call fcn.0040ca1d
test al, al
jne 0x413e12
push 0x271d
jmp 0x413d83
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401d5f
lea eax, [ebp - 0xc8]
call fcn.0040e4df
mov byte [ebp - 0xc9], 1
jmp 0x413fea
cmp eax, 1
jne 0x413edd
push 0xffffffffffffffff
lea eax, [esi + 0x48]
push eax
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
call fcn.00401cd7
mov ecx, dword [ebp - 0xd8]
call fcn.0041085e
test al, al
jne 0x413ed2
push 0x271b
call fcn.00405aa0
lea ecx, [ebp - 0x118]
call fcn.004104ad
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x118]
call fcn.00409696
pop ecx
pop ecx
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x118]
call fcn.00401d5f
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.0041498f
xor edi, edi
cmp eax, edi
push edi
lea esi, [ebp - 0x5c]
push ebx
je 0x413ec4
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401d5f
jmp 0x413c61
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413eba
mov byte [esi + 0x64], 1
xor ebx, ebx
jmp 0x413e1d
cmp byte [ebp - 0xca], bl
jne 0x413e1d
cmp byte [esi + 0x64], bl
jne 0x413e1d
push dword [ebp - 0xd8]
call fcn.0040ca2c
test al, al
pop ecx
jne 0x413e1d
push 0x271c
call fcn.00405aa0
lea ecx, [ebp - 0x118]
call fcn.004104ad
push dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x118]
call fcn.00409696
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
push 0x2790
call fcn.00405aa0
lea ecx, [ebp - 0x118]
call fcn.004104ad
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x118]
lea esi, [ebp - 0x20]
call fcn.00402dd1
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
lea esi, [ebp - 0x118]
call fcn.0040e15e
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x20]
call fcn.00402dd1
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401d5f
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.0041498f
cmp eax, ebx
push ebx
lea esi, [ebp - 0x20]
push 1
jne 0x413bba
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
jmp 0x413bc2
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0x2c], 2
jne 0x413e1d
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040e4df
mov byte [ebp - 0xc9], bl
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401d5f
lea esi, [ebp - 0xe8]
call fcn.004054aa
mov al, byte [ebp - 0xc9]
jmp 0x4133d8