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

Disassembly:
push 0xffffffffffffffff
push 0x4714b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov dword [esp + 0x1c0], esi
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486c04
call fcn.0044e650
or edi, 0xffffffff
mov ecx, 0x4937b8
mov dword [esp + 0x1c0], edi
call fcn.004570c0
cmp ax, 4
jne 0x40da2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ax, di
jmp 0x40e6d0
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov dword [esp + 0x1c0], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486bb8
call fcn.0044e650
mov ecx, 0x4937b8
mov dword [esp + 0x1c0], edi
call fcn.004570c0
mov cl, byte [esp + 0x67]
mov dword [esp + 0x24], esi
mov byte [esp + 0x20], cl
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x1b0], 2
call dword [edx + 0x10]
test ax, ax
jg 0x40db14
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 2
call fcn.004570c0
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x40e51d
mov al, byte [ecx - 1]
test al, al
je 0x40db02
cmp al, 0xff
je 0x40db02
dec al
mov byte [ecx - 1], al
xor ax, ax
jmp 0x40e6d0
dec ecx
push ecx
call fcn.00467320
add esp, 4
xor ax, ax
jmp 0x40e6d0
mov ebp, dword [0x47814c]
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 8]
cmp eax, esi
jne 0x40db29
xor edx, edx
jmp 0x40db3f
mov ecx, dword [ebx + 0xc]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, word [esp + 0x10]
cmp eax, edx
jae 0x40dbd3
mov edx, dword [ebx + 8]
lea ecx, [eax + eax*4]
mov edi, ebp
mov eax, dword [edx + ecx*4 + 0xc]
lea esi, [edx + ecx*4 + 4]
cmp eax, edi
jae 0x40db62
mov edi, eax
sub ebp, dword [esp + 0x28]
cmp ebp, edi
ja 0x40db6f
call fcn.00467340
test edi, edi
jbe 0x40dbbd
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [eax + edi]
push ebp
call fcn.00413860
test al, al
je 0x40dbbd
mov esi, dword [esi + 4]
test esi, esi
jne 0x40db96
mov esi, 0x478288
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, edi
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [0x47814c]
inc eax
xor esi, esi
mov dword [esp + 0x10], eax
jmp 0x40db1e
mov edi, 0x486c00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de38
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40dc5b
mov eax, ecx
cmp eax, ebp
ja 0x40dc5b
movsx edx, byte [0x486c00]
mov ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x24]
add ebp, ecx
mov dword [esp + 0x14], eax
push ebp
push edx
push eax
call fcn.004680c0
add esp, 0xc
test eax, eax
je 0x40dc5b
mov ecx, dword [esp + 0x10]
mov edi, 0x486c00
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dcf2
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x486c00]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004680c0
add esp, 0xc
test eax, eax
jne 0x40dc21
mov eax, dword [0x47814c]
mov edx, dword [esp + 0x24]
cmp ax, 0xffff
jne 0x40de38
mov edi, 0x486bfc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de2e
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40dd09
mov eax, ecx
cmp eax, ebp
ja 0x40dd09
mov eax, 1
mov esi, ecx
movsx ecx, byte [0x486bfc]
sub eax, esi
mov dword [esp + 0x14], edx
add ebp, eax
push ebp
push ecx
push edx
call fcn.004680c0
add esp, 0xc
test eax, eax
je 0x40dd05
mov ecx, dword [esp + 0x10]
mov edi, 0x486bfc
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dcfd
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x486bfc]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004680c0
add esp, 0xc
test eax, eax
jne 0x40dcba
jmp 0x40dd05
mov edx, dword [esp + 0x24]
sub eax, edx
jmp 0x40dc64
mov edx, dword [esp + 0x24]
sub eax, edx
jmp 0x40dd0e
mov edx, dword [esp + 0x24]
mov eax, dword [0x47814c]
cmp ax, 0xffff
jne 0x40de2e
mov edi, 0x486bf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de2e
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40dd9e
mov eax, ecx
cmp eax, ebp
ja 0x40dd9e
mov eax, 1
mov esi, ecx
movsx ecx, byte [0x486bf8]
sub eax, esi
mov dword [esp + 0x14], edx
add ebp, eax
push ebp
push ecx
push edx
call fcn.004680c0
add esp, 0xc
test eax, eax
je 0x40dd9e
mov ecx, dword [esp + 0x10]
mov edi, 0x486bf8
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40de25
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x486bf8]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004680c0
add esp, 0xc
test eax, eax
jne 0x40dd64
mov eax, dword [0x47814c]
cmp ax, 0xffff
jne 0x40de2e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486bf0
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 2
call fcn.004570c0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e51d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e513
cmp cl, 0xff
je 0x40e513
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6d0
sub eax, dword [esp + 0x24]
jmp 0x40dda3
mov dword [esp + 0x10], 2
jmp 0x40de40
mov dword [esp + 0x10], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
test ax, ax
jg 0x40de9b
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 2
call fcn.004570c0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jmp 0x40dae4
push 0xbb8
call fcn.0044b4f0
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
call dword [eax + 0xc]
test ax, ax
jge 0x40df03
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 2
call fcn.004570c0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jmp 0x40dae4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40df17
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
test ecx, 0xfffffff8
jne 0x40df67
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 7
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486be8
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 2
call fcn.004570c0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
jmp 0x40ddf8
mov edx, dword [ebx + 0x18]
xor esi, esi
test edx, edx
jne 0x40df74
xor eax, eax
jmp 0x40df7c
mov eax, dword [ebx + 0x1c]
sub eax, edx
sar eax, 3
movsx ecx, si
cmp ecx, eax
jae 0x40df92
mov eax, dword [ebx + 0x18]
cmp dword [eax + ecx*8], 0x253
je 0x40dfc4
inc esi
jmp 0x40df6c
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486be8
jmp 0x40ddda
lea ecx, [esp + 0x40]
call fcn.00454890
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0044e5b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00455310
push 9
push 0x486bdc
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 0xb
call fcn.0044e650
push 8
push 0x486bd0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b8], 0xc
call fcn.0044e650
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 0xd
call fcn.00454c40
lea ecx, [esp + 0x54]
call fcn.004557b0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x1c]
call fcn.0044e790
lea eax, [esp + 0x18]
mov ebp, 1
push eax
lea ecx, [esp + 0x44]
mov word [esp + 0x20], bp
call fcn.00454a70
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x1c]
call fcn.0044e790
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], 0
call fcn.00454a70
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x493780
call fcn.00453960
lea ecx, [esp + 0x64]
call fcn.004553c0
lea ecx, [esp + 0x54]
call fcn.00455790
cmp ax, bp
jge 0x40e16d
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 0xd
call fcn.004570c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0044e6f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0044e6f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00455350
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0044e6f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.004548b0
jmp 0x40ddf8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [esp + 0x78]
call fcn.00452ff0
push ebp
push 0xff
push 0
lea ecx, [esp + 0x84]
call fcn.00453150
lea ecx, [esp + 0x78]
push 0
push ecx
push 0
mov ecx, 0x493780
call fcn.004531c0
push 0x7d0
mov ecx, 0x493780
call fcn.0044f0a0
push 0x3ff33333
push 0x33333333
push 0x30
push 0xa0
mov ecx, 0x493780
call fcn.00450f90
push 3
push 0xc
push 7
push 7
mov ecx, 0x493780
call fcn.0044f0b0
push 8
push 0
push 0x40c2c000
push 0
mov ecx, 0x493780
call fcn.00450900
push ebp
push 0x486bcc
lea ecx, [esp + 0x40]
call fcn.0044e650
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 0xf
call fcn.00454c40
lea ecx, [esp + 0x54]
call fcn.004557b0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x1c]
call fcn.0044e790
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], bp
call fcn.00454a70
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x493780
call fcn.00453960
lea ecx, [esp + 0x64]
call fcn.004553c0
lea ecx, [esp + 0x54]
call fcn.00455790
cmp ax, bp
jge 0x40e357
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 0xf
call fcn.004570c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0044e6f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0044e6f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0044e6f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00455350
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0044e6f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.004548b0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e51d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e513
cmp cl, 0xff
je 0x40e513
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6d0
lea ecx, [esp + 0x78]
call fcn.004531a0
lea eax, [esp + 0x78]
push 0
push eax
push 0
mov ecx, 0x493780
call fcn.004531c0
push 2
push 0x486bc8
lea ecx, [esp + 0x44]
call fcn.0044e650
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b4], 0x11
call fcn.004556d0
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x58]
call fcn.004556d0
mov edi, dword [eax + 4]
mov ecx, esi
call fcn.0044e950
dec eax
mov ecx, edi
push eax
call fcn.0044e8c0
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.0044e8d0
lea ecx, [esp + 0x40]
call fcn.00454c40
lea ecx, [esp + 0x54]
call fcn.004557b0
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x1c]
call fcn.0044e790
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], bp
call fcn.00454a70
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x493780
call fcn.00453960
lea ecx, [esp + 0x64]
call fcn.004553c0
lea ecx, [esp + 0x54]
call fcn.00455790
cmp ax, bp
jge 0x40e525
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0x12
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 0x11
call fcn.004570c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b0], 0xf
call fcn.0044e6f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0044e6f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0044e6f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0044e6f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00455350
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0044e6f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.004548b0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e51d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e513
cmp cl, 0xff
je 0x40e513
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6d0
dec eax
push eax
call fcn.00467320
add esp, 4
xor ax, ax
jmp 0x40e6d0
push ebp
push 0xff
push 0
lea ecx, [esp + 0x84]
call fcn.00453150
lea eax, [esp + 0x78]
push 0
push eax
push 0
mov ecx, 0x493780
call fcn.004531c0
cmp word [esp + 0x10], bp
mov ecx, ebx
jne 0x40e55c
call fcn.0040e6f0
jmp 0x40e561
call fcn.0040ebc0
push ebp
push 0x4930fc
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0044e650
mov bl, 0x13
push esi
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b8], bl
call fcn.0044e8d0
lea ecx, [esp + 0x40]
call fcn.00454c40
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x1c]
call fcn.0044e790
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], 0
call fcn.00454a70
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, 0x493780
call fcn.00453960
lea ecx, [esp + 0x68]
call fcn.00455350
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486bc0
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], bl
call fcn.004570c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b0], 0x11
call fcn.0044e6f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b0], 0xf
call fcn.0044e6f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0044e6f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0044e6f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0044e6f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00455350
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0044e6f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.004548b0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e6cd
mov cl, byte [eax - 1]
test cl, cl
je 0x40e6c3
cmp cl, 0xff
je 0x40e6c3
dec cl
mov byte [eax - 1], cl
jmp 0x40e6cd
dec eax
push eax
call fcn.00467320
add esp, 4
mov ax, bp
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret