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

Disassembly:
push ebp
mov edx, 0x39
xor ebp, ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x19c
mov ebx, dword [0x449d60]
mov ecx, dword [0x449d68]
mov dword [esp + 0x14], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0xc
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0xc
lea esi, [esi]
nop
test ecx, ecx
jle 0x40d66c
cmp dword [ebx], edx
je 0x40d6a0
xor eax, eax
jmp 0x40d665
cmp edx, dword [ebx + eax*4]
je 0x40d6a0
add eax, 1
cmp eax, ecx
jne 0x40d660
cmp edi, ebp
jl 0x40d6a8
je 0x40d8d2
cmp edi, 0x10
jg 0x40d750
mov ebx, dword [0x449d60]
mov ecx, dword [0x449d68]
mov ebp, edi
lea esi, [esi]
movzx edx, byte [ebp + str.996_29_20_2623]
jmp 0x40d650
add ebp, 1
cmp ebp, 0x11
jne 0x40d690
cmp ebp, dword [0x449d5c]
je 0x40d999
cmp ebp, 0x11
jg 0x40de34
cmp ebp, edi
jl 0x40de34
mov ebx, ebp
sub ebx, edi
cmp ebx, 0x11
je 0x40d803
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
call fcn.00406be0
mov edx, ebx
mov esi, eax
lea eax, [edi + str.996_29_20_2623]
cmp ebx, 4
jae 0x40d883
test ebx, ebx
je 0x40d703
movzx ecx, byte [eax]
mov byte [esi], cl
test bl, 2
jne 0x40dc4d
mov byte [esi + ebx], 0
test ebx, ebx
jg 0x40d83f
mov dword [esp + 0x8c], 0x4250a8
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
lea ebx, [esp + 0xa8]
lea edx, [esp + 0x8c]
mov edi, ebp
mov eax, ebx
call fcn.00407470
cmp edi, 0x10
jle 0x40d67f
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
test eax, eax
jg 0x40d7d0
jmp 0x40da3b
mov ebp, dword [eax]
lea eax, [esi + 1]
call fcn.00406be0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov edi, eax
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [edi + esi], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc0]
call fcn.00407470
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0040d220
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x40da3b
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov esi, dword [eax + 4]
test esi, esi
jg 0x40d770
mov dword [esp + 0x2c], 0x4250a8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
jmp 0x40d7a0
mov eax, 0x12
call fcn.00406be0
mov dword [esp + 0x10], 0x12
mov edx, 0x11
mov dword [eax], 0x2d363939
mov esi, eax
mov dword [eax + 4], 0x322d3932
mov dword [eax + 8], 0x2b322f30
mov dword [eax + 0xc], 0x2a322b36
mov byte [eax + 0x10], 0x33
mov byte [eax + 0x11], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
call fcn.00406be0
mov edx, dword [esp + 0x18]
cmp edx, 4
jae 0x40d9a3
test edx, edx
jne 0x40dab9
mov byte [eax + edx], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0
jmp 0x40d730
mov ecx, dword [edi + str.996_29_20_2623]
lea edi, [esi + 4]
and edi, 0xfffffffc
mov dword [esi], ecx
mov ecx, dword [eax + ebx - 4]
mov dword [esi + ebx - 4], ecx
mov ecx, esi
sub ecx, edi
sub eax, ecx
add ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x40d703
mov dword [esp + 0x1c], ebx
and ecx, 0xfffffffc
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, dword [eax + ecx]
mov dword [edi + ecx], edx
add ecx, 4
cmp ecx, dword [esp + 0x18]
jb 0x40d8ba
mov edx, dword [esp + 0x1c]
jmp 0x40d703
movzx ebx, byte [edi + str.996_29_20_2623]
call fcn.00406f10
mov esi, eax
mov byte [eax], bl
mov byte [eax + 1], 0
cmp bl, 0x28
je 0x40d9ee
cmp bl, 0x2a
je 0x40d8fd
cmp bl, 0x2f
jne 0x40dad6
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
test eax, eax
jle 0x40d962
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
test edx, edx
je 0x40dbf5
mov dword [esp + 0x18], edi
lea ebx, [esp + 0xa8]
mov dword [esp + 0x10], esi
mov esi, edx
cmp ebp, 1
jne 0x40db70
movzx eax, byte [esi]
cmp al, 0x28
je 0x40d95a
sub eax, 0x2b
test al, 0xfd
jne 0x40db78
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, 2
call fcn.00406be0
movzx edx, byte [esi]
mov dword [esp + 0x6c], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, ebx
mov dword [esp + 0x70], 0
call fcn.00407470
jmp 0x40da33
mov ebx, 0x11
jmp 0x40d6c7
mov ecx, dword [esi]
lea edi, [eax + 4]
and edi, 0xfffffffc
mov dword [eax], ecx
mov ecx, dword [esi + edx - 4]
mov dword [eax + edx - 4], ecx
mov ecx, eax
sub ecx, edi
sub esi, ecx
add ecx, edx
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x40d861
mov dword [esp + 0x18], eax
and ecx, 0xfffffffc
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov eax, dword [esi + ecx]
mov dword [edi + ecx], eax
add ecx, 4
cmp ecx, dword [esp + 0x10]
jb 0x40d9d6
mov eax, dword [esp + 0x18]
jmp 0x40d861
mov eax, 2
lea ebx, [esp + 0xa8]
call fcn.00406be0
movzx edx, byte [esi]
mov dword [esp + 0x84], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x80]
mov dword [esp + 0x80], eax
mov eax, ebx
mov dword [esp + 0x88], 0
call fcn.00407470
add edi, 1
jmp 0x40d676
mov esi, dword [esp + 0x14]
mov byte [esp + 0xf0], 0
mov eax, dword [esp + 0xf0]
mov dword [esi], eax
mov eax, dword [0x449d4c]
mov dword [esi + 4], eax
mov eax, dword [0x449d50]
mov dword [esi + 8], eax
mov eax, dword [0x449d54]
mov dword [esi + 0xc], eax
mov eax, dword [0x449d58]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc4]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0xd0]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x28], eax
mov eax, esi
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esi]
mov byte [eax], cl
test dl, 2
je 0x40d861
movzx ecx, word [esi + edx - 2]
mov word [eax + edx - 2], cx
jmp 0x40d861
lea eax, [ebx - 0x2b]
test al, 0xfd
jne 0x40dd1d
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x40dd11
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov edx, dword [eax + 4]
test ebp, ebp
je 0x40dccb
mov eax, edx
lea ebx, [esp + 0xa8]
mov edx, ebp
mov ebp, eax
cmp ebp, 1
jne 0x40dc60
cmp byte [edx], 0x28
jne 0x40dcd0
mov eax, 2
call fcn.00406be0
movzx edx, byte [esi]
mov dword [esp + 0x54], 1
mov byte [eax + 1], 0
mov byte [eax], dl
lea edx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, ebx
mov dword [esp + 0x58], 0
call fcn.00407470
jmp 0x40da33
test ebp, ebp
jle 0x40dc30
lea eax, [ebp + 1]
call fcn.00406be0
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov edi, eax
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [edi + ebp], 0
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0
lea edx, [esp + 0x74]
lea eax, [esp + 0xc0]
call fcn.00407470
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0040d220
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x40d95a
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov esi, dword [eax]
mov ebp, dword [eax + 4]
test esi, esi
jne 0x40d93f
mov eax, str.string.eq__:_nil_string
mov edx, 0x17
mov ecx, 1
mov dword [esp + 0xf0], str.string.eq__:_nil_string
mov dword [esp + 0xf4], 0x17
mov dword [esp + 0xf8], 1
call fcn.00406aa0
lea esi, [esi]
mov dword [esp + 0x74], 0x4250a8
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 1
jmp 0x40dba6
movzx eax, word [eax + ebx - 2]
mov word [esi + ebx - 2], ax
jmp 0x40d703
test ebp, ebp
jg 0x40dcd0
mov dword [esp + 0x5c], 0x4250a8
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
lea edx, [esp + 0x5c]
lea eax, [esp + 0xc0]
call fcn.00407470
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0040d220
mov eax, dword [esp + 0xb0]
test eax, eax
jle 0x40db2e
sub eax, 1
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xa8]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
test edx, edx
jne 0x40db1c
call fcn.00407190
lea eax, [ebp + 1]
mov dword [esp + 0x10], edx
call fcn.00406be0
mov edx, dword [esp + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0
mov byte [ecx + ebp], 0
mov dword [esp + 0x5c], ecx
jmp 0x40dc7c
lea ebx, [esp + 0xa8]
jmp 0x40db2e
cmp bl, 0x29
je 0x40e085
xor ebx, ebx
lea edi, [esp + 0x108]
mov ecx, 0xa
mov eax, ebx
lea edx, [esp + 0xf0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x100], esi
mov dword [esp + 0xf0], str.err:_invalid_character__
mov dword [esp + 0xf4], 0x18
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 0xfe10
mov dword [esp + 0x104], 1
mov dword [esp + 0x110], 0x425aac
mov dword [esp + 0x114], 1
mov dword [esp + 0x118], 1
call fcn.00406790
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xa0], eax
mov eax, 0x10
call fcn.004044c0
mov edi, dword [esp + 0x14]
mov ecx, 0xb
mov edx, eax
mov eax, dword [esp + 0x98]
mov dword [edx], eax
mov eax, dword [esp + 0x9c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [edx + 0xc], eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [edi + 4], edx
mov eax, edi
mov dword [edi + 0xc], edx
add edx, 0xc
mov byte [edi], 1
mov dword [edi + 8], 3
mov dword [edi + 0x10], edx
jmp 0x40daae
mov esi, edi
xor eax, eax
lea edi, [esp + 0x104]
mov ecx, 0x23
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x100], esi
mov dword [esp + 0xf0], str.substr_
mov dword [esp + 0x168], eax
mov eax, 0x100
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 0xfe07
mov dword [esp + 0x110], 0x425a72
mov dword [esp + 0x114], 2
mov dword [esp + 0x118], 1
mov dword [esp + 0x11c], 0xfe07
mov dword [esp + 0x120], ebp
mov dword [esp + 0x130], str.__out_of_bounds__len
mov dword [esp + 0x134], 0x15
mov dword [esp + 0x138], 1
mov dword [esp + 0x13c], 0xfe07
mov dword [esp + 0x140], 0x11
mov dword [esp + 0x150], str.__s_
mov dword [esp + 0x154], 5
mov dword [esp + 0x158], 1
mov dword [esp + 0x15c], 0xfe10
mov dword [esp + 0x160], str.996_29_20_2623
mov dword [esp + 0x164], 0x11
mov dword [esp + 0x170], 0x425a91
mov dword [esp + 0x174], 1
mov dword [esp + 0x178], 1
call fcn.00407230
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0x100
mov dword [esp + 0xe8], 1
mov dword [esp + 0xec], 1
test ecx, ecx
jne 0x40e29e
mov esi, dword [esp + 0xfc]
test esi, esi
jne 0x40e286
mov ecx, dword [esp + 0x114]
test ecx, ecx
jne 0x40e25e
mov ebx, dword [esp + 0x11c]
test ebx, ebx
jne 0x40e246
mov ecx, dword [esp + 0x134]
test ecx, ecx
jne 0x40e21e
mov ecx, dword [esp + 0x13c]
test ecx, ecx
jne 0x40e206
mov ecx, dword [esp + 0x154]
test ecx, ecx
jne 0x40e1de
mov edx, dword [esp + 0x15c]
test edx, edx
jne 0x40e1c6
mov ecx, dword [esp + 0x174]
test ecx, ecx
jne 0x40e1a0
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x40e188
lea edx, [esp + 0x38]
lea eax, [esp + 0xd8]
mov byte [esp + 0x38], 0
call fcn.004087b0
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x40e179
mov esi, dword [esp + 0xd8]
mov eax, ebx
call fcn.00406be0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0xe0]
xor ecx, ecx
lea edx, [esi - 1]
call fcn.00406aa0
mov eax, dword [esp + 0xb0]
lea ebx, [esp + 0xa8]
lea edx, [eax - 1]
test eax, eax
jle 0x40e0ca
mov eax, dword [esp + 0xbc]
imul eax, edx
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
test ebp, ebp
je 0x40dccb
lea ebx, [esp + 0xa8]
cmp esi, 1
jne 0x40e0d6
cmp byte [ebp], 0x28
jne 0x40e140
mov eax, ebx
call fcn.0040d220
jmp 0x40da33
test esi, esi
jg 0x40e140
mov dword [esp + 0x44], 0x4250a8
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
lea edx, [esp + 0x44]
lea eax, [esp + 0xc0]
call fcn.00407470
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
mov eax, ebx
call fcn.0040d220
mov eax, dword [esp + 0xb0]
lea edx, [eax - 1]
test eax, eax
jle 0x40e0ca
mov eax, dword [esp + 0xbc]
imul eax, edx
add eax, dword [esp + 0xa8]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
test ebp, ebp
jne 0x40e0bf
jmp 0x40dccb
lea eax, [esi + 1]
call fcn.00406be0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0
mov byte [edx + esi], 0
mov dword [esp + 0x44], edx
jmp 0x40e0f2
mov eax, 1
call fcn.00407230
jmp 0x40e074
lea edx, [esp + 0xd8]
lea eax, [esp + 0x170]
call fcn.00404800
jmp 0x40e032
mov edx, dword [esp + 0x170]
jle 0x40e023
test edx, edx
je 0x40e023
lea eax, [esp + 0xd8]
call fcn.004075a0
jmp 0x40e023
lea edx, [esp + 0xd8]
lea eax, [esp + 0x150]
call fcn.00404800
jmp 0x40e014
mov edx, dword [esp + 0x150]
test edx, edx
je 0x40e005
test ecx, ecx
jle 0x40e005
lea eax, [esp + 0xd8]
call fcn.004075a0
jmp 0x40e005
lea edx, [esp + 0xd8]
lea eax, [esp + 0x130]
call fcn.00404800
jmp 0x40dff6
mov edx, dword [esp + 0x130]
test edx, edx
je 0x40dfe7
test ecx, ecx
jle 0x40dfe7
lea eax, [esp + 0xd8]
call fcn.004075a0
jmp 0x40dfe7
lea edx, [esp + 0xd8]
lea eax, [esp + 0x110]
call fcn.00404800
jmp 0x40dfd8
mov edx, dword [esp + 0x110]
test edx, edx
je 0x40dfc9
test ecx, ecx
jle 0x40dfc9
lea eax, [esp + 0xd8]
call fcn.004075a0
jmp 0x40dfc9
lea edx, [esp + 0xd8]
lea eax, [esp + 0xf0]
call fcn.00404800
jmp 0x40dfba
mov edx, dword [esp + 0xf0]
test edx, edx
je 0x40dfab
test ecx, ecx
jle 0x40dfab
lea eax, [esp + 0xd8]
call fcn.004075a0
jmp 0x40dfab