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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4682ca
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp + 0x9c]
test al, al
jne 0x40afe3
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x30]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x54]
test eax, eax
jge 0x40afc6
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40afe3
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov al, byte [ebp + 0x94]
test al, al
jne 0x40b825
mov esi, dword [ebp + 0x20]
mov eax, 0x4cbebc20
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x38], eax
mov eax, 0xccbebc20
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], eax
lea eax, [esp + 0x10]
mov byte [ebp + 0x94], 1
mov edx, dword [esi]
push eax
push esi
mov dword [esp + 0x38], 0
call dword [edx + 0xc4]
test eax, eax
jge 0x40b03d
push 0x4791d8
push esi
push eax
call fcn.0045c300
movsx eax, word [esp + 0x10]
or ebx, 0xffffffff
test eax, eax
jle 0x40b569
mov dword [esp + 0x2c], eax
jmp 0x40b056
or ebx, 0xffffffff
push 0x28
call fcn.0045cff5
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x78], 0
je 0x40b079
mov ecx, eax
call fcn.00449e60
jmp 0x40b07b
xor eax, eax
mov ecx, dword [ebp + 0x24]
push eax
mov dword [esp + 0x7c], ebx
call fcn.00449dc0
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x34]
mov dword [ebp + 0x40], eax
push edx
mov ecx, dword [esi]
push esi
call dword [ecx + 0xc0]
test eax, eax
jge 0x40b0ac
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x58]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc0]
test eax, eax
jge 0x40b0cd
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x38]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc0]
test eax, eax
jge 0x40b0ee
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x3c]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc0]
test eax, eax
jge 0x40b10f
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc0]
test eax, eax
jge 0x40b130
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x40]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc0]
test eax, eax
jge 0x40b151
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov ecx, dword [ebp + 0x40]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x40]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 0x40]
fstp dword [ecx + 0x24]
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x12]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc4]
test eax, eax
jge 0x40b19a
push 0x4791d8
push esi
push eax
call fcn.0045c300
movsx edi, word [esp + 0x12]
lea ecx, [edi + edi*2]
lea edx, [ecx*8 + 4]
push edx
call fcn.0045cff5
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x78], 1
je 0x40b1dc
push fcn.004542a0
push 0x454280
lea esi, [eax + 4]
push edi
push 0x18
push esi
mov dword [eax], edi
call fcn.0045d444
jmp 0x40b1de
xor esi, esi
test edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x30], esi
jle 0x40b3bc
mov ebx, esi
mov dword [esp + 0x24], edi
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x48]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc0]
test eax, eax
jge 0x40b219
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x1c]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc0]
test eax, eax
jge 0x40b23a
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x44]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc0]
test eax, eax
jge 0x40b25b
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov ecx, dword [ebp + 0x40]
fld dword [esp + 0x1c]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 1
je 0x40b275
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x14], eax
jmp 0x40b28a
fld dword [esp + 0x1c]
fcomp dword [ecx + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40b28a
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0x20], edx
push 0xc
call fcn.0045cff5
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x78], 2
je 0x40b2af
mov ecx, eax
call fcn.00453bf0
mov esi, eax
jmp 0x40b2b1
xor esi, esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x84], 0xffffffff
call fcn.00453c70
push esi
mov ecx, ebx
call fcn.00453ea0
mov eax, dword [esp + 0x24]
add ebx, 0x18
dec eax
mov dword [esp + 0x24], eax
jne 0x40b1f8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edi
add eax, 0x10
mov dword [esp + 0x24], eax
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x4c]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xb8]
test eax, eax
jge 0x40b31c
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
and ebx, 0xff
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0xb8]
test eax, eax
jge 0x40b347
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov edi, dword [ebp + 0x20]
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x54]
and esi, 0xff
mov edx, dword [edi]
push eax
push edi
call dword [edx + 0xb8]
test eax, eax
jge 0x40b372
push 0x4791d8
push edi
push eax
call fcn.0045c300
mov ecx, dword [esp + 0x54]
and ecx, 0xff
test ebx, ebx
jge 0x40b386
add ebx, 0x100
test esi, esi
jge 0x40b390
add esi, 0x100
test ecx, ecx
jge 0x40b39a
add ecx, 0x100
mov eax, dword [esp + 0x24]
mov dword [eax - 4], ebx
mov dword [eax], esi
mov dword [eax + 4], ecx
add eax, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x40b2fb
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x10]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc4]
test eax, eax
jge 0x40b3dd
push 0x4791d8
push esi
push eax
call fcn.0045c300
movsx esi, word [esp + 0x10]
mov ecx, dword [ebp + 0x40]
push esi
call fcn.00449fd0
test esi, esi
mov dword [esp + 0x28], 0
jle 0x40b55a
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc4]
test eax, eax
jge 0x40b41c
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x18]
movsx ebx, word [esp + 0x14]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0xc4]
test eax, eax
jge 0x40b442
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x16]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc4]
test eax, eax
jge 0x40b463
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x1a]
movsx edi, word [esp + 0x16]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0xc4]
test eax, eax
jge 0x40b489
push 0x4791d8
push esi
push eax
call fcn.0045c300
push 0x4c
call fcn.0045cff5
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x78], 3
je 0x40b4c2
push fcn.004542a0
push 0x454280
lea esi, [eax + 4]
push 3
push 0x18
push esi
mov dword [eax], 3
call fcn.0045d444
jmp 0x40b4c4
xor esi, esi
lea edx, [ebx + ebx*2]
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x78], 0xffffffff
lea eax, [ebx + edx*8]
push eax
call fcn.004542b0
movsx eax, word [esp + 0x18]
lea ecx, [eax + eax*2]
lea edx, [ebx + ecx*8]
lea ecx, [esi + 0x18]
push edx
call fcn.004542b0
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
push ecx
lea ecx, [esi + 0x30]
call fcn.004542b0
mov ecx, dword [ebp + 0x40]
call fcn.00449ff0
push 0x2c
mov edi, eax
call fcn.0045cff5
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x78], 4
je 0x40b537
movsx ecx, word [esp + 0x1a]
push ecx
push 3
push esi
mov ecx, eax
call fcn.004329a0
jmp 0x40b539
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], 0xffffffff
mov dword [edi + ecx*4], eax
inc ecx
movsx eax, word [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x40b3fb
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40b053
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x1a]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc4]
test eax, eax
jge 0x40b58a
push 0x4791d8
push esi
push eax
call fcn.0045c300
movsx eax, word [esp + 0x1a]
test eax, eax
jle 0x40b7c7
mov dword [esp + 0x2c], eax
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x1a]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc4]
test eax, eax
jge 0x40b5bc
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea ecx, [esp + 0x4c]
movsx edi, word [esp + 0x1a]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0xc0]
test eax, eax
jge 0x40b5e2
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0x50]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0xc0]
test eax, eax
jge 0x40b603
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x54]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc0]
test eax, eax
jge 0x40b624
push 0x4791d8
push esi
push eax
call fcn.0045c300
mov eax, edi
dec eax
jne 0x40b7b8
mov eax, dword [0x47fb20]
mov ecx, dword [eax + 0x558]
mov edx, dword [eax + 0x55c]
cmp ecx, edx
jge 0x40b7b8
mov edi, 0x47f834
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x10]
push 1
not ecx
dec ecx
mov byte [esp + 0x64], dl
mov ebx, ecx
lea ecx, [esp + 0x64]
push ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
call fcn.00401c40
test al, al
je 0x40b6a4
mov edi, dword [esp + 0x64]
mov ecx, ebx
mov eax, ecx
mov esi, 0x47f834
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], ebx
xor esi, esi
mov byte [ecx + ebx], 0
mov edx, dword [0x47fb20]
mov eax, dword [0x46f234]
mov dword [esp + 0x78], 5
mov bl, byte [edx + 0x558]
mov edx, dword [esp + 0x68]
sub eax, edx
inc bl
cmp eax, 1
ja 0x40b6cf
call fcn.0045c5b4
mov ecx, dword [esp + 0x68]
push esi
lea edi, [ecx + 1]
lea ecx, [esp + 0x64]
push edi
call fcn.00401c40
test al, al
je 0x40b702
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
movsx ecx, bl
add eax, edx
mov ch, cl
mov byte [eax], cl
mov eax, dword [esp + 0x64]
mov dword [esp + 0x68], edi
mov byte [eax + edi], 0
push 0xe8
call fcn.0045cff5
mov edi, eax
add esp, 4
mov dword [esp + 0x5c], edi
cmp edi, esi
mov byte [esp + 0x78], 6
je 0x40b756
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push 0x3f800000
push 0x41d20000
sub esp, 0x10
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
call fcn.004023f0
mov ecx, edi
call fcn.00436620
jmp 0x40b758
xor eax, eax
push eax
mov eax, dword [0x47fb20]
mov byte [esp + 0x7c], 5
mov ecx, dword [eax + 0x6a4]
call fcn.00435bf0
mov eax, dword [0x47fb20]
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [eax + 0x558]
inc ecx
mov dword [eax + 0x558], ecx
mov ecx, dword [esp + 0x64]
cmp ecx, esi
je 0x40b7ac
mov al, byte [ecx - 1]
test al, al
je 0x40b7a2
cmp al, 0xff
je 0x40b7a2
dec al
mov byte [ecx - 1], al
jmp 0x40b7ac
dec ecx
push ecx
call fcn.0045c5a9
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40b59b
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, edi
je 0x40b7ee
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004542a0
push ecx
push 0x18
push eax
call fcn.0045c7ed
push esi
call fcn.0045c5a9
add esp, 4
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x40b7fe
mov dword [ebp + 0x20], edi
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp + 0x40], edi
call fcn.00449e00
mov byte [ebp + 0x9c], 1
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret