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

Disassembly:
sub esp, 0x254
mov eax, dword [0x4465d4]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x260]
push ebx
mov ebx, dword [0x43b044]
push ebp
mov ebp, dword [0x43b098]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
xor edi, edi
lea esp, [esp]
push edi
lea edx, [esp + 0x254]
push 0x43c35c
push edx
call fcn.00417028
add esp, 0xc
lea eax, [esp + 0x250]
push eax
push 0
push 0
call ebp
mov esi, eax
test esi, esi
je 0x40b051
call dword [0x43b048]
cmp eax, 0xb7
jne 0x40b070
push esi
call ebx
push esi
call dword [0x43b094]
inc edi
cmp edi, 6
jl 0x40b010
push 0
push 0x43c350
push 0x43c328
push 0
call dword [fcn.0043b1fc]
jmp 0x40b608
push edi
call fcn.0040af50
push 0x1000
push 0
push 0x4476a8
call fcn.00414dc0
add esp, 0x10
push 0x4476a8
push 0x1000
call dword [0x43b070]
mov eax, 0x4476a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b0a2
sub eax, edx
cmp eax, 1
jl 0x40b0c0
mov cl, 0x5c
cmp byte [eax + 0x4476a7], cl
je 0x40b0c0
mov byte [eax + 0x4476a8], cl
lea ecx, [esp + 0xc0]
push ecx
push 2
call dword [0x43b204]
test eax, eax
jne 0x40b60a
push 0x4476a8
call fcn.0040a9b0
mov esi, dword [esp + 0x14]
add esp, 4
mov dword [0x4476a0], eax
cmp byte [esi], 0
jne 0x40b100
mov edx, dword [esp + 0x14]
push edx
call fcn.00409af0
add esp, 4
mov eax, esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b120
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x74]
call fcn.00404210
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
cmp edi, 0x10
jb 0x40b297
mov ebx, edx
mov dword [esp + 0x14], ebx
test edx, edx
je 0x40b179
mov eax, edx
cmp edi, 0x10
jae 0x40b15d
lea eax, [esp + 0x70]
cmp eax, ebx
ja 0x40b179
mov eax, edx
cmp edi, 0x10
jae 0x40b16c
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x80]
add eax, ecx
cmp ebx, eax
jbe 0x40b190
call fcn.00414fd6
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
mov eax, edx
cmp edi, 0x10
jae 0x40b19b
lea eax, [esp + 0x70]
lea ebp, [ecx + eax]
test ebp, ebp
je 0x40b1c2
mov eax, edx
cmp edi, 0x10
jae 0x40b1ad
lea eax, [esp + 0x70]
cmp eax, ebp
ja 0x40b1c2
mov eax, edx
cmp edi, 0x10
jae 0x40b1bc
lea eax, [esp + 0x70]
add eax, ecx
cmp ebp, eax
jbe 0x40b1d9
call fcn.00414fd6
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
cmp edi, 0x10
jb 0x40b2a4
mov esi, edx
test edx, edx
je 0x40b208
mov eax, edx
cmp edi, 0x10
jae 0x40b1f3
lea eax, [esp + 0x70]
cmp eax, esi
ja 0x40b208
mov eax, edx
cmp edi, 0x10
jae 0x40b202
lea eax, [esp + 0x70]
add ecx, eax
cmp esi, ecx
jbe 0x40b218
call fcn.00414fd6
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
mov eax, ebp
lea ecx, [esp + 0x6c]
sub eax, esi
cmp ecx, 0xfffffffc
je 0x40b257
mov ecx, edx
cmp edi, 0x10
jae 0x40b230
lea ecx, [esp + 0x70]
add eax, ebx
mov ebx, dword [esp + 0x80]
add ecx, ebx
cmp eax, ecx
ja 0x40b24e
mov ecx, edx
cmp edi, 0x10
jae 0x40b24a
lea ecx, [esp + 0x70]
cmp eax, ecx
jae 0x40b253
call fcn.00414fd6
mov ebx, dword [esp + 0x14]
cmp esi, ebp
je 0x40b274
mov edi, ebx
sub edi, esi
nop
movsx edx, byte [esi]
push edx
call fcn.004176b0
mov byte [edi + esi], al
inc esi
add esp, 4
cmp esi, ebp
jne 0x40b260
push 4
xor ebx, ebx
push ebx
push 0x43c320
lea ecx, [esp + 0x78]
call fcn.00402ca0
cmp eax, 0xffffffff
je 0x40b2ad
or esi, 0xffffffff
lea ebp, [ebx + 0x10]
jmp 0x40b52e
lea ebx, [esp + 0x70]
mov dword [esp + 0x14], ebx
jmp 0x40b152
lea esi, [esp + 0x70]
jmp 0x40b1e8
push 1
mov edi, 0xf
push 0x43be2c
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
call fcn.00404210
push 0xc
push 0x43c310
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0
call fcn.00404210
push 7
push 0x43bf4c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
call fcn.00404210
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.00405900
mov ebp, 0x10
add esp, 0x10
cmp dword [esp + 0x4c], ebp
jb 0x40b340
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00414c1e
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
cmp dword [esp + 0x30], ebp
jb 0x40b360
mov edx, dword [esp + 0x1c]
push edx
call fcn.00414c1e
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
cmp dword [esp + 0x68], ebp
jb 0x40b380
mov eax, dword [esp + 0x54]
push eax
call fcn.00414c1e
add esp, 4
mov ecx, dword [esp + 0x9c]
push 1
push 0x43be2c
push ecx
push ebx
lea ecx, [esp + 0x98]
call fcn.00402e10
test eax, eax
jne 0x40b3b2
push ebx
push 0x43b8b6
call fcn.0040ae50
add esp, 8
mov esi, eax
jmp 0x40b3e6
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ebp
jae 0x40b3c9
lea eax, [esp + 0x8c]
push eax
call fcn.00417209
mov esi, eax
add esi, 0x63
add esp, 4
cmp esi, 0x64
jl 0x40b3e1
cmp esi, 0x65
jle 0x40b3e6
mov esi, 0x64
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x40b501
push 1
push 0x43be2c
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
call fcn.00404210
push 7
push 0x43c308
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
call fcn.00404210
push 7
push 0x43bf4c
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0
call fcn.00404210
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.00405900
add esp, 0x10
cmp dword [esp + 0x30], ebp
jb 0x40b47c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00414c1e
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
cmp dword [esp + 0x4c], ebp
jb 0x40b49c
mov edx, dword [esp + 0x38]
push edx
call fcn.00414c1e
add esp, 4
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
cmp dword [esp + 0x68], ebp
jb 0x40b4bc
mov eax, dword [esp + 0x54]
push eax
call fcn.00414c1e
add esp, 4
mov ecx, dword [esp + 0xb8]
push 1
push 0x43be2c
push ecx
push ebx
lea ecx, [esp + 0xb4]
call fcn.00402e10
test eax, eax
jne 0x40b4e8
lea edx, [esi - 0x63]
push edx
call fcn.00407860
add esp, 4
cmp dword [esp + 0xbc], ebp
jb 0x40b501
mov eax, dword [esp + 0xa8]
push eax
call fcn.00414c1e
add esp, 4
mov eax, esi
sub eax, 0x64
je 0x40b564
sub eax, 1
jne 0x40b56b
call fcn.00405ec0
sub esi, 0x64
cmp dword [esp + 0xa0], ebp
jb 0x40b52e
mov eax, dword [esp + 0x8c]
push eax
call fcn.00414c1e
add esp, 4
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
je 0x40b5ca
mov eax, dword [esp + 0x10]
mov ecx, 0x446328
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b5b5
test dl, dl
je 0x40b560
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b5b5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b544
xor eax, eax
jmp 0x40b5ba
call fcn.004060c0
jmp 0x40b512
cmp esi, 0x66
jne 0x40b512
call dword [0x43b208]
cmp dword [esp + 0xa0], ebp
jb 0x40b58f
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00414c1e
add esp, 4
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], 0
cmp dword [esp + 0x84], ebp
jb 0x40b608
mov edx, dword [esp + 0x70]
push edx
jmp 0x40b600
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b5ca
imul esi, esi, 0x64
inc esi
push esi
push 0x43b8b6
jmp 0x40b5d3
mov edx, dword [esp + 0x10]
imul esi, esi, 0x64
push esi
push edx
call fcn.0040ad40
add esp, 8
cmp eax, ebx
je 0x40b5ec
mov eax, dword [esp + 0x10]
push eax
call fcn.0040af20
add esp, 4
call dword [0x43b208]
cmp dword [esp + 0x84], ebp
jb 0x40b608
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00414c1e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041582b
add esp, 0x254
ret 0x10