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

Disassembly:
push 0xffffffffffffffff
push 0x72808b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
test edi, edi
mov ebp, ecx
mov dword [esp + 0x14], ebp
je 0x40bbaa
cmp byte [edi], 0
je 0x40bbaa
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x40bbaa
push 0x40
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x40b58e
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push edi
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0040b290
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 0x28
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
and eax, 0xf
mov dword [esp + 0x30], eax
sub eax, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], 0
je 0x40b5f2
dec eax
je 0x40b5cc
mov dword [esp + 0x80], 0
jmp 0x40b621
push 0
push 0x4f000000
push 0xfffffffffffffffe
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x88]
push edx
push edi
mov ecx, ebp
call fcn.0040b190
fld dword [esp + 0x78]
fchs
jmp 0x40b61a
push 0
push 0x4f000000
push 0xfffffffffffffffe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x88]
push ecx
push edi
mov ecx, ebp
call fcn.0040b190
fld dword [esp + 0x78]
fmul dword [0x7465f8]
fstp dword [esp + 0x80]
fld dword [esp + 0x80]
mov al, byte [esp + 0x84]
test al, al
fadd dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x44]
je 0x40b650
mov eax, dword [ebp + 0x34]
fld dword [esp + 0x6c]
fsub dword [eax]
fstp dword [esp + 0x4c]
push ebx
mov ecx, 0x7cb478
mov dword [esp + 0x6c], 0
mov bl, 1
mov byte [esp + 0x70], 0
mov byte [esp + 0x7c], 0
mov esi, edi
call fcn.004d51b0
mov dword [esp + 0x28], eax
cmp byte [edi], 0
je 0x40b6de
mov al, byte [esi]
cmp al, 0xa
je 0x40b6c9
cmp al, 0x23
je 0x40b6ba
cmp al, 0x40
je 0x40b692
test bl, bl
je 0x40b6d6
inc dword [esp + 0x6c]
jmp 0x40b6d6
push 0x23
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x6c]
jne 0x40b6ad
inc eax
mov dword [esp + 0x6c], eax
jmp 0x40b6d6
test eax, eax
jne 0x40b6b6
mov byte [esp + 0x70], 1
xor bl, bl
jmp 0x40b6d6
mov al, byte [esi + 1]
test al, al
mov bl, 1
jne 0x40b6d6
mov byte [esp + 0x7c], bl
jmp 0x40b6d6
fld dword [esp + 0x24]
mov ecx, dword [ebp + 0x34]
fadd dword [ecx]
fstp dword [esp + 0x24]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40b67a
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x88], 0
je 0x40b739
mov cl, byte [esp + 0x70]
test cl, cl
je 0x40b6fa
inc eax
mov cl, byte [esp + 0x7c]
test cl, cl
je 0x40b703
inc eax
mov edx, dword [esp + 0x80]
push edx
push eax
mov ecx, ebp
call fcn.0040c600
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x74]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x38], ecx
push edi
mov ecx, eax
mov dword [esp + 0x8c], eax
mov dword [eax + 0x34], edx
call fcn.006ea1a0
jmp 0x40b743
mov byte [esp + 0x7c], 0
mov byte [esp + 0x70], 0
mov eax, dword [0x7de6d0]
mov edx, dword [0x7de6cc]
mov ecx, dword [0x7de6d4]
mov dword [esp + 0x40], eax
mov al, byte [edi]
xor esi, esi
xor ebx, ebx
test al, al
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x6c], edi
je 0x40bae2
mov eax, dword [esp + 0x28]
sub eax, edi
dec eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x6c]
mov al, byte [edx]
cmp al, 0xa
je 0x40ba47
cmp al, 0x23
je 0x40ba0b
cmp al, 0x40
je 0x40b80f
cmp al, 0x80
mov byte [esp + 0x14], al
jb 0x40b7b6
mov eax, dword [esp + 0x14]
and eax, 0xff
mov cl, byte [eax + 0x775a3c]
mov byte [esp + 0x14], cl
mov eax, dword [esp + 0x14]
and eax, 0xff
lea edx, [eax*8]
sub edx, eax
test esi, esi
mov eax, dword [ebp + 0x34]
lea eax, [eax + edx*8 + 0x128]
je 0x40b7eb
lea ecx, [esp + 0x3c]
push ecx
push esi
push ebx
push eax
mov ecx, ebp
call fcn.0040c3b0
inc ebx
jmp 0x40bac5
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x3c]
push edx
push ecx
push edi
push eax
mov ecx, ebp
call fcn.0040c3b0
inc edi
mov dword [esp + 0x78], edi
jmp 0x40bac5
mov edx, dword [esp + 0x6c]
push 0x23
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40bac5
mov eax, dword [esp + 0x78]
xor edi, edi
test eax, eax
jne 0x40b85f
mov al, byte [esp + 0x70]
test al, al
je 0x40b85f
mov edx, dword [esp + 0x88]
mov eax, dword [ebp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
push edx
add eax, 0x128
push edi
push eax
mov ecx, ebp
call fcn.0040c3b0
mov dword [esp + 0x78], 1
mov eax, dword [esp + 0x6c]
mov cl, byte [eax + 1]
xor esi, esi
inc eax
cmp cl, 0x23
je 0x40b88d
mov edx, dword [esp + 0x20]
mov cl, byte [eax]
cmp cl, 0xa
je 0x40b87f
mov byte [edx + eax], cl
inc esi
jmp 0x40b883
mov byte [edx + eax], 0x20
mov cl, byte [eax + 1]
inc edi
inc eax
cmp cl, 0x23
jne 0x40b872
mov eax, dword [esp + 0x28]
mov byte [edi + eax], 0
mov ecx, dword [0x7c67e0]
mov ecx, dword [ecx]
push eax
call fcn.004ba8d0
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x40b993
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ebx, dword [esp + 0x68]
cmp ebx, eax
jne 0x40b8e3
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x674]
push ebp
mov ecx, eax
call fcn.0047e780
test eax, eax
je 0x40b993
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + 0x28]
push edi
push eax
push edx
mov ecx, ebp
call fcn.004b29e0
test eax, eax
je 0x40b993
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x40b90d
mov dword [eax], edi
mov edi, eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0040c600
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x74]
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov ecx, dword [edi]
cmp ecx, esi
je 0x40b955
test ecx, ecx
je 0x40b94c
dec dword [ecx + 4]
jne 0x40b94c
test ecx, ecx
je 0x40b94c
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [edi], esi
je 0x40b955
inc dword [esi + 4]
mov ecx, dword [esp + 0x64]
push edi
mov dword [edi + 4], ebp
call fcn.0047e360
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
cmp ebx, eax
je 0x40ba00
mov ecx, dword [0x7c67dc]
push ebp
call fcn.0040ff20
mov ecx, eax
call fcn.0056a470
mov ebp, dword [esp + 0x18]
xor ebx, ebx
jmp 0x40bac5
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0040c600
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x74]
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
jne 0x40b9f4
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x5c], edi
je 0x40b9e6
mov ecx, eax
call fcn.006c81e0
jmp 0x40b9e8
xor eax, eax
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x10], eax
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 0x94]
mov ebp, dword [esp + 0x18]
xor ebx, ebx
jmp 0x40bac5
test esi, esi
je 0x40ba41
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x1c]
xor edx, edx
mov dx, word [eax + 8]
push 0xc
push ecx
lea ecx, [eax + 0xc]
push edx
call fcn.006ed170
mov esi, dword [esi + 0x98]
inc word [esi + 0x30]
cmp word [esi + 0x30], 0
jne 0x40ba41
mov word [esi + 0x30], 1
xor esi, esi
xor ebx, ebx
jmp 0x40bac5
mov eax, dword [esp + 0x34]
sub eax, 2
je 0x40ba83
dec eax
je 0x40ba5b
fld dword [0x746468]
jmp 0x40baad
mov edx, dword [esp + 0x6c]
push 0
push 0x4f000000
push 0xfffffffffffffffe
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
push ecx
inc edx
push edx
mov ecx, ebp
call fcn.0040b190
fld dword [esp + 0x1c]
fchs
jmp 0x40baad
mov edx, dword [esp + 0x6c]
push 0
push 0x4f000000
push 0xfffffffffffffffe
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
push ecx
inc edx
push edx
mov ecx, ebp
call fcn.0040b190
fld dword [esp + 0x1c]
fmul dword [0x7465f8]
fsub dword [esp + 0x84]
mov eax, dword [ebp + 0x34]
fstp dword [esp + 0x3c]
fld dword [esp + 0x44]
fsub dword [eax]
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov cl, byte [eax + 1]
inc eax
dec edx
test cl, cl
mov dword [esp + 0x6c], eax
mov dword [esp + 0x20], edx
jne 0x40b781
mov eax, dword [esp + 0x88]
test eax, eax
pop ebx
je 0x40bb6a
mov al, byte [esp + 0x78]
test al, al
je 0x40bb1a
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push edi
push edx
add eax, 0x128
push eax
mov ecx, ebp
call fcn.0040c3b0
jmp 0x40bb21
mov edi, dword [esp + 0x84]
mov eax, dword [edi + 0x98]
mov ecx, dword [eax + 0x1c]
xor edx, edx
mov dx, word [eax + 8]
push 0xc
push ecx
lea ecx, [eax + 0xc]
push edx
call fcn.006ed170
mov eax, dword [edi + 0x98]
inc word [eax + 0x30]
cmp word [eax + 0x30], 0
jne 0x40bb53
mov word [eax + 0x30], 1
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40bb6e
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x94]
jmp 0x40bb6e
mov esi, dword [esp + 0xc]
test esi, esi
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x30], ecx
je 0x40bb8f
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 0x28
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 0x28
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 0x28