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

Disassembly:
push 0xffffffffffffffff
push 0x4626a7
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 0x4755e4
call fcn.0043f770
push ecx
mov dword [esp + 0x1c0], esi
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475c04
call fcn.0043f770
or edi, 0xffffffff
mov ecx, 0x4824d0
mov dword [esp + 0x1c0], edi
call fcn.004483e0
cmp ax, 4
jne 0x40da3c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ax, di
jmp 0x40e6e0
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov dword [esp + 0x1c0], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475bb8
call fcn.0043f770
mov ecx, 0x4824d0
mov dword [esp + 0x1c0], edi
call fcn.004483e0
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 0x40db24
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 2
call fcn.004483e0
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x40e52d
mov al, byte [ecx - 1]
test al, al
je 0x40db12
cmp al, 0xff
je 0x40db12
dec al
mov byte [ecx - 1], al
xor ax, ax
jmp 0x40e6e0
dec ecx
push ecx
call fcn.00458510
add esp, 4
xor ax, ax
jmp 0x40e6e0
mov ebp, dword [0x46814c]
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 8]
cmp eax, esi
jne 0x40db39
xor edx, edx
jmp 0x40db4f
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 0x40dbe3
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 0x40db72
mov edi, eax
sub ebp, dword [esp + 0x28]
cmp ebp, edi
ja 0x40db7f
call fcn.00458530
test edi, edi
jbe 0x40dbcd
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [eax + edi]
push ebp
call fcn.00413840
test al, al
je 0x40dbcd
mov esi, dword [esi + 4]
test esi, esi
jne 0x40dba6
mov esi, 0x468288
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 [0x46814c]
inc eax
xor esi, esi
mov dword [esp + 0x10], eax
jmp 0x40db2e
mov edi, 0x475c00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de48
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40dc6b
mov eax, ecx
cmp eax, ebp
ja 0x40dc6b
movsx edx, byte [0x475c00]
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.004592b0
add esp, 0xc
test eax, eax
je 0x40dc6b
mov ecx, dword [esp + 0x10]
mov edi, 0x475c00
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dd02
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x475c00]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004592b0
add esp, 0xc
test eax, eax
jne 0x40dc31
mov eax, dword [0x46814c]
mov edx, dword [esp + 0x24]
cmp ax, 0xffff
jne 0x40de48
mov edi, 0x475bfc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de3e
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40dd19
mov eax, ecx
cmp eax, ebp
ja 0x40dd19
mov eax, 1
mov esi, ecx
movsx ecx, byte [0x475bfc]
sub eax, esi
mov dword [esp + 0x14], edx
add ebp, eax
push ebp
push ecx
push edx
call fcn.004592b0
add esp, 0xc
test eax, eax
je 0x40dd15
mov ecx, dword [esp + 0x10]
mov edi, 0x475bfc
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40dd0d
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x475bfc]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004592b0
add esp, 0xc
test eax, eax
jne 0x40dcca
jmp 0x40dd15
mov edx, dword [esp + 0x24]
sub eax, edx
jmp 0x40dc74
mov edx, dword [esp + 0x24]
sub eax, edx
jmp 0x40dd1e
mov edx, dword [esp + 0x24]
mov eax, dword [0x46814c]
cmp ax, 0xffff
jne 0x40de3e
mov edi, 0x475bf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
je 0x40de3e
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x40ddae
mov eax, ecx
cmp eax, ebp
ja 0x40ddae
mov eax, 1
mov esi, ecx
movsx ecx, byte [0x475bf8]
sub eax, esi
mov dword [esp + 0x14], edx
add ebp, eax
push ebp
push ecx
push edx
call fcn.004592b0
add esp, 0xc
test eax, eax
je 0x40ddae
mov ecx, dword [esp + 0x10]
mov edi, 0x475bf8
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40de35
mov ecx, dword [esp + 0x14]
movsx edx, byte [0x475bf8]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ebp, [ecx + ebp - 1]
push ebp
push edx
push eax
call fcn.004592b0
add esp, 0xc
test eax, eax
jne 0x40dd74
mov eax, dword [0x46814c]
cmp ax, 0xffff
jne 0x40de3e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475bf0
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 2
call fcn.004483e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e52d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e523
cmp cl, 0xff
je 0x40e523
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6e0
sub eax, dword [esp + 0x24]
jmp 0x40ddb3
mov dword [esp + 0x10], 2
jmp 0x40de50
mov dword [esp + 0x10], 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
test ax, ax
jg 0x40deab
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 2
call fcn.004483e0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jmp 0x40daf4
push 0xbb8
call fcn.0043cc50
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
call dword [eax + 0xc]
test ax, ax
jge 0x40df13
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 2
call fcn.004483e0
mov ecx, dword [esp + 0x24]
test ecx, ecx
jmp 0x40daf4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40df27
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
test ecx, 0xfffffff8
jne 0x40df77
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 7
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475be8
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 2
call fcn.004483e0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
jmp 0x40de08
mov edx, dword [ebx + 0x18]
xor esi, esi
test edx, edx
jne 0x40df84
xor eax, eax
jmp 0x40df8c
mov eax, dword [ebx + 0x1c]
sub eax, edx
sar eax, 3
movsx ecx, si
cmp ecx, eax
jae 0x40dfa2
mov eax, dword [ebx + 0x18]
cmp dword [eax + ecx*8], 0x253
je 0x40dfd4
inc esi
jmp 0x40df7c
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475be8
jmp 0x40ddea
lea ecx, [esp + 0x40]
call fcn.004527a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0043f6d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00446630
push 9
push 0x475bdc
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 0xb
call fcn.0043f770
push 8
push 0x475bd0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b8], 0xc
call fcn.0043f770
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 0xd
call fcn.00445f90
lea ecx, [esp + 0x54]
call fcn.00446ad0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x1c]
call fcn.0043f8b0
lea eax, [esp + 0x18]
mov ebp, 1
push eax
lea ecx, [esp + 0x44]
mov word [esp + 0x20], bp
call fcn.00445dc0
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x1c]
call fcn.0043f8b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], 0
call fcn.00445dc0
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x482498
call fcn.00444a80
lea ecx, [esp + 0x64]
call fcn.004466e0
lea ecx, [esp + 0x54]
call fcn.00446ab0
cmp ax, bp
jge 0x40e17d
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 0xd
call fcn.004483e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0043f810
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0043f810
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00446670
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0043f810
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.00445c00
jmp 0x40de08
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
lea ecx, [esp + 0x78]
call fcn.00444110
push ebp
push 0xff
push 0
lea ecx, [esp + 0x84]
call fcn.00444270
lea ecx, [esp + 0x78]
push 0
push ecx
push 0
mov ecx, 0x482498
call fcn.004442e0
push 0x7d0
mov ecx, 0x482498
call fcn.004401c0
push 0x3ff33333
push 0x33333333
push 0x30
push 0xa0
mov ecx, 0x482498
call fcn.004420b0
push 3
push 0xc
push 7
push 7
mov ecx, 0x482498
call fcn.004401d0
push 8
push 0
push 0x40c2c000
push 0
mov ecx, 0x482498
call fcn.00441a20
push ebp
push 0x475bcc
lea ecx, [esp + 0x40]
call fcn.0043f770
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 0xf
call fcn.00445f90
lea ecx, [esp + 0x54]
call fcn.00446ad0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x1c]
call fcn.0043f8b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], bp
call fcn.00445dc0
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x482498
call fcn.00444a80
lea ecx, [esp + 0x64]
call fcn.004466e0
lea ecx, [esp + 0x54]
call fcn.00446ab0
cmp ax, bp
jge 0x40e367
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 0xf
call fcn.004483e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0043f810
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0043f810
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0043f810
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00446670
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0043f810
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.00445c00
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e52d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e523
cmp cl, 0xff
je 0x40e523
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6e0
lea ecx, [esp + 0x78]
call fcn.004442c0
lea eax, [esp + 0x78]
push 0
push eax
push 0
mov ecx, 0x482498
call fcn.004442e0
push 2
push 0x475bc8
lea ecx, [esp + 0x44]
call fcn.0043f770
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b4], 0x11
call fcn.004469f0
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x58]
call fcn.004469f0
mov edi, dword [eax + 4]
mov ecx, esi
call fcn.0043fa70
dec eax
mov ecx, edi
push eax
call fcn.0043f9e0
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.0043f9f0
lea ecx, [esp + 0x40]
call fcn.00445f90
lea ecx, [esp + 0x54]
call fcn.00446ad0
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x1c]
call fcn.0043f8b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], bp
call fcn.00445dc0
sub esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x24], esp
push 0
push edx
push ecx
mov ecx, 0x482498
call fcn.00444a80
lea ecx, [esp + 0x64]
call fcn.004466e0
lea ecx, [esp + 0x54]
call fcn.00446ab0
cmp ax, bp
jge 0x40e535
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0x12
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 0x11
call fcn.004483e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b0], 0xf
call fcn.0043f810
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0043f810
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0043f810
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0043f810
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00446670
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0043f810
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.00445c00
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e52d
mov cl, byte [eax - 1]
test cl, cl
je 0x40e523
cmp cl, 0xff
je 0x40e523
dec cl
mov byte [eax - 1], cl
xor ax, ax
jmp 0x40e6e0
dec eax
push eax
call fcn.00458510
add esp, 4
xor ax, ax
jmp 0x40e6e0
push ebp
push 0xff
push 0
lea ecx, [esp + 0x84]
call fcn.00444270
lea eax, [esp + 0x78]
push 0
push eax
push 0
mov ecx, 0x482498
call fcn.004442e0
cmp word [esp + 0x10], bp
mov ecx, ebx
jne 0x40e56c
call fcn.0040e700
jmp 0x40e571
call fcn.0040ebd0
push ebp
push 0x481e1c
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0043f770
mov bl, 0x13
push esi
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b8], bl
call fcn.0043f9f0
lea ecx, [esp + 0x40]
call fcn.00445f90
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x1c]
call fcn.0043f8b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
mov word [esp + 0x20], 0
call fcn.00445dc0
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, 0x482498
call fcn.00444a80
lea ecx, [esp + 0x68]
call fcn.00446670
push 0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x4755e4
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475bc0
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], bl
call fcn.004483e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b0], 0x11
call fcn.0043f810
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b0], 0xf
call fcn.0043f810
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 0xd
call fcn.0043f810
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0xc
call fcn.0043f810
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 0xb
call fcn.0043f810
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b0], 0xa
call fcn.00446670
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 9
call fcn.0043f810
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b0], 2
call fcn.00445c00
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e6dd
mov cl, byte [eax - 1]
test cl, cl
je 0x40e6d3
cmp cl, 0xff
je 0x40e6d3
dec cl
mov byte [eax - 1], cl
jmp 0x40e6dd
dec eax
push eax
call fcn.00458510
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