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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, dword [esp + 0x2c0]
xor ebx, ebx
or edx, 0xffffffff
xor eax, eax
push esi
mov esi, eax
mov eax, ebp
push edi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408300
sub eax, edi
mov dword [esp + 0x44], eax
jne 0x408333
mov eax, dword [esp + 0x84]
mov edi, eax
mov dword [edi], ebx
or ecx, 0xffffffff
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
xor ecx, ecx
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
push 2
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00401450
add esp, 0xc
mov edi, 0x475800
lea esi, [esp + 0x10]
mov ecx, 3
xor edx, edx
mov byte [esp + 0x12], 0
repe cmpsb byte [esi], byte es:[edi]
mov ecx, 2
jne 0x40838c
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x164]
mov edi, eax
mov dword [edi], ebx
or esi, 0xffffffff
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor ecx, ecx
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov edi, 0x4758d0
lea esi, [esp + 0x10]
xor eax, eax
mov byte [esp + 0x11], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x4083d7
mov eax, dword [esp + 0x164]
cdq
sub eax, edx
mov edx, dword [esp + 0x84]
mov edi, edx
mov dword [edi], ebx
or esi, 0xffffffff
mov dword [edi + 4], esi
mov ecx, 1
sar eax, 1
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x70
ret
push 0x49a374
call fcn.00401040
xor ecx, ecx
mov cl, byte [ebp]
xor eax, eax
mov esi, 0xffff
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
push ecx
call fcn.00401810
add esp, 8
test eax, eax
je 0x408429
movsx edx, byte [ebp]
xor eax, eax
mov al, byte [ebp + 1]
shl edx, 8
mov dword [esp + 0x74], 2
and eax, 0xff
xor eax, edx
and eax, esi
jmp 0x40843b
xor eax, eax
mov al, byte [ebp]
mov dword [esp + 0x74], 1
and eax, 0xff
lea ecx, [esp + 0x48]
push ecx
push 0x4999b0
push 0x9c4
lea edx, [esp + 0x64]
push edx
push 6
push eax
mov eax, dword [esp + 0x214]
push eax
call dword [0x474030]
mov ecx, dword [esp + 0x2b8]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x174]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
lea ebx, [edx + ecx]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x64]
sub ecx, ebp
mov ebp, dword [esp + 0x2bc]
sub ecx, eax
sub ecx, ebp
add ecx, edx
mov edx, dword [0x4811c4]
mov edi, eax
lea eax, [ecx + edx - 1]
add esi, 3
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1ec]
and esi, 0xfffc
cmp eax, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebx
jne 0x40871d
mov eax, dword [esp + 0x2c4]
movzx ecx, byte [esp + 0x2c6]
movzx edx, ah
and eax, 0xff
mov dword [esp + 0x40], eax
or eax, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov dword [esp + 0x24], eax
mov edi, edi
or ecx, 0xffffffff
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x408513
test ecx, ecx
je 0x4086f9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10c]
add eax, ecx
imul eax, dword [0x4811c0]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x1c]
add eax, edx
lea ebp, [edi - 1]
add ecx, edx
imul ebp, esi
mov edx, dword [esp + 0xc8]
add eax, ebx
lea edx, [edx + eax*2]
add edx, eax
add ecx, ebx
mov dword [esp + 0x2c], edx
xor edx, edx
add ebp, 0x4999b0
test edi, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
jle 0x4086f9
mov eax, edx
imul eax, dword [0x4811c0]
xor ebx, ebx
test esi, esi
jle 0x4086e6
mov edx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x18], ecx
lea ecx, [edx + eax*2]
lea esi, [eax + ecx + 2]
jmp 0x408590
cmp dword [esp + 0x2d0], 1
movsx eax, byte [ebx + ebp]
jne 0x4085f0
test eax, eax
je 0x4086bf
mov edx, dword [esp + 0x1f0]
cmp edx, 0xff
lea ecx, [eax*4]
je 0x4085c4
imul edx, ecx
sar edx, 8
mov ecx, edx
mov edx, dword [esp + 0x2cc]
cmp edx, 0xff
je 0x4085d9
imul ecx, edx
sar ecx, 8
mov edi, dword [esp + 0x18]
movzx edi, byte [edi]
add ecx, edi
cmp ecx, edx
jle 0x4085e8
mov ecx, edx
mov edi, dword [esp + 0x18]
mov byte [edi], cl
jmp 0x4085f7
mov edx, dword [esp + 0x2cc]
test eax, eax
je 0x4086bf
cmp eax, 0x40
mov ecx, dword [esp + 0x1f0]
jne 0x40862a
cmp ecx, 0xff
jl 0x40862a
mov ax, word [esp + 0x10]
mov cl, byte [esp + 0x40]
lea edx, [esi - 2]
mov word [edx], ax
mov byte [edx + 2], cl
jmp 0x4086bf
shl eax, 2
cmp ecx, 0xff
je 0x40863d
imul ecx, eax
sar ecx, 8
mov eax, ecx
cmp edx, 0xff
je 0x40864b
imul eax, edx
sar eax, 8
cmp eax, edx
jle 0x408651
mov eax, edx
movzx edx, byte [esi - 2]
mov edi, dword [esp + 0x34]
shl edx, 8
mov ecx, 0xff
sub ecx, eax
add edx, ecx
mov dl, byte [edx*4 + 0x49ad80]
shl edi, 8
add edi, eax
add dl, byte [edi*4 + 0x49ad80]
mov edi, dword [esp + 0x30]
mov byte [esi - 2], dl
movzx edx, byte [esi - 1]
shl edx, 8
add edx, ecx
mov dl, byte [edx*4 + 0x49ad80]
shl edi, 8
add edi, eax
add dl, byte [edi*4 + 0x49ad80]
mov byte [esi - 1], dl
movzx edx, byte [esi]
shl edx, 8
add edx, ecx
mov ecx, dword [esp + 0x40]
mov dl, byte [edx*4 + 0x49ad80]
shl ecx, 8
add ecx, eax
add dl, byte [ecx*4 + 0x49ad80]
mov byte [esi], dl
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc ebx
inc edx
add esi, 3
cmp ebx, eax
mov dword [esp + 0x18], edx
jl 0x408590
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, eax
inc edx
sub ebp, esi
cmp edx, edi
mov dword [esp + 0x14], edx
jl 0x408564
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, 2
mov dword [esp + 0x1c], ecx
jl 0x408507
inc eax
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x408500
mov eax, dword [esp + 0x3c]
imul eax, dword [0x4811c0]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0xc8]
add ecx, eax
add ecx, ebx
add eax, ebx
movzx ebx, byte [esp + 0x2c2]
lea ebp, [edi - 1]
imul ebp, esi
mov dword [esp + 0x28], ecx
lea ecx, [edx + eax*2]
add ecx, eax
mov eax, dword [esp + 0x2c0]
mov dword [esp + 0x2c], ecx
movzx ecx, ah
and eax, 0xff
mov edx, eax
xor eax, eax
add ebp, 0x4999b0
test edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], cl
mov dword [esp + 0x14], eax
jle 0x408954
mov edi, dword [esp + 0x1e8]
imul eax, dword [0x4811c0]
test esi, esi
mov dword [esp + 0x18], 0
jle 0x40893b
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + eax*2]
add esi, eax
lea ecx, [ecx]
cmp dword [esp + 0x2d0], 1
mov eax, dword [esp + 0x18]
movsx eax, byte [eax + ebp]
jne 0x408829
test eax, eax
je 0x408914
cmp edi, 0xff
lea ecx, [eax*4]
je 0x4087f1
imul edi, ecx
sar edi, 8
mov ecx, edi
mov edi, dword [esp + 0x2cc]
cmp edi, 0xff
je 0x408806
imul ecx, edi
sar ecx, 8
mov edi, dword [esp + 0x1c]
movzx edi, byte [edi]
add ecx, edi
mov edi, dword [esp + 0x2cc]
cmp ecx, edi
jle 0x40881c
mov ecx, edi
mov edi, dword [esp + 0x1c]
mov byte [edi], cl
mov edi, dword [esp + 0x1e8]
test eax, eax
je 0x408914
cmp eax, 0x40
jne 0x408855
cmp dword [esp + 0x2cc], 0xff
jne 0x408857
mov ax, word [esp + 0x10]
mov ecx, esi
mov word [ecx], ax
mov byte [ecx + 2], dl
jmp 0x408914
jl 0x408869
mov ax, word [esp + 0x10]
mov ecx, esi
mov word [ecx], ax
mov byte [ecx + 2], dl
jmp 0x408914
shl eax, 2
cmp edi, 0xff
je 0x40887c
imul edi, eax
sar edi, 8
mov eax, edi
mov ecx, dword [esp + 0x2cc]
cmp ecx, 0xff
je 0x408891
imul eax, ecx
sar eax, 8
cmp eax, ecx
jle 0x408897
mov eax, ecx
movzx edi, byte [esi]
shl edi, 8
mov ecx, 0xff
sub ecx, eax
add edi, ecx
shl ebx, 8
add ebx, eax
mov dword [esp + 0x40], edx
mov dl, byte [edi*4 + 0x49ad80]
add dl, byte [ebx*4 + 0x49ad80]
movzx edi, byte [esi + 1]
mov ebx, dword [esp + 0x30]
shl edi, 8
add edi, ecx
mov byte [esi], dl
mov dl, byte [edi*4 + 0x49ad80]
movzx edi, byte [esi + 2]
shl ebx, 8
add ebx, eax
add dl, byte [ebx*4 + 0x49ad80]
shl edi, 8
add edi, ecx
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
mov ecx, edx
shl ecx, 8
add ecx, eax
mov al, byte [edi*4 + 0x49ad80]
mov bl, byte [ecx*4 + 0x49ad80]
mov edi, dword [esp + 0x1e8]
add al, bl
mov ebx, dword [esp + 0x34]
mov byte [esi + 2], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add esi, 3
cmp eax, ecx
jl 0x4087c0
mov esi, ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
sub ebp, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408793
mov edi, ecx
movsx esi, word [esp + 0x68]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x168]
sub eax, edi
push 0x49a374
mov edi, eax
add esi, edx
call fcn.00401060
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x48]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x78]
add esp, 4
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
pop edi
mov dword [edx + 0xc], esi
pop esi
xor ecx, ecx
pop ebp
mov dword [edx + 0x10], ecx
pop ebx
add esp, 0x70
ret