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

Disassembly:
push 0xffffffffffffffff
push 0x4546e0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46a630]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x94]
push eax
mov ebx, edx
mov dword [esp + 0x2c], ecx
call fcn.00411440
mov edi, eax
add esp, 4
lea esi, [esp + 0x58]
mov ecx, edi
call fcn.00410f50
mov dword [esp + 0x80], 0
cmp dword [esp + 0x6c], 0
jne 0x40f433
mov dword [esp + 0x30], 0
jmp 0x40f443
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
movzx ecx, ax
mov dword [esp + 0x30], ecx
lea edi, [ebx + 8]
push edi
xor eax, eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x28], 0x30
mov dword [esp + 0x4c], edi
call fcn.004504c8
mov ebx, dword [esp + 0x48]
add esp, 0x14
cmp byte [ebp + 8], 0
mov dword [esp + 0x24], ebx
jne 0x40f488
mov esi, ebp
call fcn.00411050
mov edx, dword [esp + 0x28]
cmp byte [edx + 8], 0
jne 0x40f499
mov esi, edx
call fcn.00411050
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40f4b1
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 4], eax
je 0x40f557
test eax, eax
je 0x40f4bf
mov edx, dword [esp + 0x28]
cmp dword [edx + 4], 0
jne 0x40f557
cmp byte [ebp + 8], 0
jne 0x40f4cc
mov esi, ebp
call fcn.00411050
movzx esi, word [ebp + 0xa]
xor eax, eax
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x28], 0x2b
call fcn.004504c8
add esp, 0x14
cmp si, word [esp + 0x20]
jne 0x40f505
mov byte [ebx], 0x2b
jmp 0x40f549
cmp byte [ebp + 8], 0
jne 0x40f512
mov esi, ebp
call fcn.00411050
movzx esi, word [ebp + 0xa]
xor eax, eax
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x28], 0x2d
call fcn.004504c8
add esp, 0x14
cmp si, word [esp + 0x20]
jne 0x40f557
mov byte [ebx], 0x2d
add ebx, 1
mov esi, ebp
mov dword [esp + 0x24], ebx
call fcn.00410f00
mov eax, dword [esp + 0x90]
and eax, 0xe00
cmp eax, 0x400
jne 0x40f575
mov edi, 8
mov dword [esp + 0x1c], edi
jmp 0x40f594
cmp eax, 0x800
jne 0x40f587
mov edi, 0x10
mov dword [esp + 0x1c], edi
jmp 0x40f594
neg eax
sbb eax, eax
and eax, 0xa
mov edi, eax
mov dword [esp + 0x1c], eax
cmp byte [ebp + 8], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
jne 0x40f5ab
mov esi, ebp
call fcn.00411050
mov esi, dword [esp + 0x28]
cmp byte [esi + 8], 0
jne 0x40f5ba
call fcn.00411050
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40f5ce
cmp dword [esi + 4], eax
je 0x40f687
test eax, eax
je 0x40f5d8
cmp dword [esi + 4], 0
jne 0x40f687
cmp byte [ebp + 8], 0
jne 0x40f5e5
mov esi, ebp
call fcn.00411050
movzx eax, word [ebp + 0xa]
cmp ax, word [esp + 0x2c]
jne 0x40f687
mov esi, ebp
mov byte [esp + 0x1a], 1
call fcn.00410f00
mov ebx, dword [esp + 0x28]
mov edi, ebp
call fcn.00411980
test al, al
je 0x40f676
cmp byte [ebp + 8], 0
jne 0x40f61a
call fcn.00411050
mov edi, dword [esp + 0x38]
movzx esi, word [ebp + 0xa]
push edi
push 0x78
call fcn.0040af20
add esp, 8
cmp si, ax
je 0x40f653
cmp byte [ebp + 8], 0
jne 0x40f63f
mov esi, ebp
call fcn.00411050
movzx esi, word [ebp + 0xa]
push edi
push 0x58
call fcn.0040af20
add esp, 8
cmp si, ax
jne 0x40f676
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f660
cmp eax, 0x10
jne 0x40f676
mov esi, ebp
mov dword [esp + 0x1c], 0x10
mov byte [esp + 0x1a], 0
call fcn.00410f00
jmp 0x40f692
cmp dword [esp + 0x1c], 0
jne 0x40f68b
mov dword [esp + 0x1c], 8
jmp 0x40f692
test edi, edi
je 0x40f6a9
cmp dword [esp + 0x1c], 0xa
je 0x40f6a9
mov edi, dword [esp + 0x1c]
sub edi, 8
neg edi
sbb edi, edi
and edi, 0xe
add edi, 8
mov dword [esp + 0x20], edi
jmp 0x40f6b5
mov dword [esp + 0x20], 0xa
mov edi, dword [esp + 0x20]
mov al, byte [esp + 0x1a]
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], al
mov dword [esp + 0x50], 1
mov byte [esp + 0x41], 0
mov esi, dword [esp + 0x28]
mov byte [esp + 0x80], 1
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x40f728
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x40f71d
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40f704
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40f704
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40f70e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40f71d
mov word [ebp + 0xa], ax
jmp 0x40f724
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
cmp byte [esi + 8], 0
jne 0x40f770
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f765
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40f74c
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40f74c
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40f756
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40f765
mov word [esi + 0xa], ax
jmp 0x40f76c
mov dword [esi + 4], 0
mov byte [esi + 8], 1
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40f7b4
cmp dword [esi + 4], ecx
jne 0x40f7ba
test ebx, ebx
je 0x40f972
cmp ebx, dword [esp + 0x50]
jbe 0x40f78f
call fcn.004366d7
mov eax, dword [esp + 0x40]
mov edi, 0x10
cmp dword [esp + 0x54], edi
jae 0x40f7a2
lea eax, [esp + 0x40]
cmp byte [eax + ebx], 0
jle 0x40f96b
add ebx, 1
jmp 0x40f977
cmp dword [esi + 4], 0
jne 0x40f77c
cmp byte [ebp + 8], 0
jne 0x40f7ff
test ecx, ecx
je 0x40f7f4
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40f7db
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40f7db
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40f7e5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40f7f4
mov word [ebp + 0xa], ax
jmp 0x40f7fb
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
mov ecx, dword [esp + 0x38]
movzx eax, word [ebp + 0xa]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24], 0
mov dword [esp + 0x3c], 0
call fcn.004501ea
mov al, byte [esp + 0x24]
mov edx, dword [esp + 0x34]
mov byte [edx], al
movsx eax, al
push edi
push eax
push str.0123456789abcdefABCDEF
call fcn.004370c0
add esp, 0x1c
test eax, eax
je 0x40f8b5
cmp byte [esp + 0x1b], 0
jne 0x40f855
mov ecx, dword [esp + 0x24]
cmp byte [ecx], 0x30
je 0x40f86c
mov eax, dword [esp + 0x34]
add eax, 0x1f
cmp dword [esp + 0x24], eax
jae 0x40f86c
add dword [esp + 0x24], 1
mov byte [esp + 0x1b], 1
cmp ebx, dword [esp + 0x50]
mov byte [esp + 0x1a], 1
jbe 0x40f87c
call fcn.004366d7
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40f88b
lea eax, [esp + 0x40]
cmp byte [eax + ebx], 0x7f
je 0x40f917
cmp ebx, dword [esp + 0x50]
jbe 0x40f8a0
call fcn.004366d7
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40f8af
lea eax, [esp + 0x40]
add byte [eax + ebx], 1
jmp 0x40f917
cmp ebx, dword [esp + 0x50]
jbe 0x40f8c0
call fcn.004366d7
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40f8cf
lea eax, [esp + 0x40]
cmp byte [eax + ebx], 0
je 0x40f77c
cmp word [esp + 0x30], 0
je 0x40f77c
cmp byte [ebp + 8], 0
jne 0x40f8f2
mov esi, ebp
call fcn.00411050
mov dx, word [esp + 0x30]
cmp word [ebp + 0xa], dx
jne 0x40f77c
push 0
lea edi, [esp + 0x40]
call fcn.0040c500
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
add ebx, 1
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x40f95b
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40f942
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40f942
mov eax, edx
add dword [eax], 0xffffffff
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 2]
mov dword [ecx], edx
movzx eax, word [eax]
jmp 0x40f94c
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
movzx eax, ax
cmp ax, 0xffff
je 0x40f95b
mov byte [ebp + 8], 0
jmp 0x40f6e0
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
jmp 0x40f6e0
mov byte [esp + 0x1a], 0
jmp 0x40f977
mov edi, 0x10
cmp dword [esp + 0x70], edi
mov esi, dword [esp + 0x5c]
jae 0x40f985
lea esi, [esp + 0x5c]
cmp byte [esp + 0x1a], 0
je 0x40fa0a
test ebx, ebx
jbe 0x40f9f7
cmp byte [esi], 0x7f
je 0x40f9f7
sub ebx, 1
je 0x40f9c3
cmp ebx, dword [esp + 0x50]
jbe 0x40f9ae
call fcn.004366d7
mov edi, 0x10
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x40f9bc
lea eax, [esp + 0x40]
mov cl, byte [esi]
cmp cl, byte [eax + ebx]
jne 0x40fa0a
test ebx, ebx
jne 0x40f9ec
cmp ebx, dword [esp + 0x50]
jbe 0x40f9d7
call fcn.004366d7
mov edi, 0x10
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x40f9e5
lea eax, [esp + 0x40]
mov dl, byte [esi]
cmp dl, byte [eax + ebx]
jl 0x40fa0a
cmp byte [esi + 1], 0
jle 0x40f990
add esi, 1
jmp 0x40f990
cmp byte [esp + 0x1b], 0
mov eax, dword [esp + 0x24]
jne 0x40fa0e
mov byte [eax], 0x30
add eax, 1
jmp 0x40fa0e
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x54], edi
mov byte [eax], 0
jb 0x40fa29
mov eax, dword [esp + 0x40]
push eax
call fcn.0041902f
add esp, 4
mov edi, 0x10
cmp dword [esp + 0x70], edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x40fa51
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0041902f
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004362fd
add esp, 0x70
ret