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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x63d20c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x58]
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x28], ebx
cmp ecx, dword [eax + 0xc]
je 0x4e06c2
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00551b9a
add esp, 0x4c
ret 0x24
push ebp
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x4e06d5
cmp dword [edi + 0x14], 0
jne 0x4e06d5
xor ecx, ecx
jmp 0x4e06da
mov ecx, 1
mov edx, dword [esi + 8]
fld qword [edx + 0x48]
fmul qword [0x5c49f8]
fadd qword [0x579e48]
fstp qword [esp + 0x34]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1c]
mov ax, word [esp + 0x1c]
and ax, 0xf3ff
or ax, 0x400
mov word [esp + 0x20], ax
fldcw word [esp + 0x20]
fistp dword [esp + 0x14]
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.004dd8e0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4e0ba3
test ebp, ebp
je 0x4e08f1
cmp dword [edi + 0x14], eax
je 0x4e082c
mov ebp, dword [esp + 0x78]
test ebp, ebp
jle 0x4e1320
mov eax, ebx
sar eax, 3
mov ecx, ebx
and ecx, 7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0x74]
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
sub ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ebp
jmp 0x4e07a4
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 8]
imul eax, dword [esp + 0x2c]
add eax, dword [edi + 0x10]
xor ebp, ebp
add eax, dword [esp + 0x24]
cmp dword [esp + 0x74], ebp
mov cl, dl
mov byte [esp + 0x20], cl
jle 0x4e07e8
mov dl, byte [eax]
and dl, cl
mov ecx, dword [esi + 0xc]
neg dl
sbb dl, dl
mov byte [ecx + ebp], dl
mov cl, byte [esp + 0x20]
movzx edx, cl
and edx, 1
add eax, edx
ror cl, 1
inc ebp
cmp ebp, dword [esp + 0x74]
mov byte [esp + 0x20], cl
jl 0x4e07c1
mov ecx, dword [edi]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
imul ecx, ebp
add ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x74]
add edx, ebp
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
sub dword [esp + 0x14], 1
mov dword [esp + 0x2c], ebp
jne 0x4e07a0
jmp 0x4e1320
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x4e1320
mov ecx, ebx
and ecx, 7
mov ebp, ebx
mov ebx, dword [esp + 0x6c]
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0x74]
lea ecx, [ebx + ecx - 1]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x68]
sar ebp, 3
sub ecx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
jmp 0x4e0888
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, ebx
imul eax, dword [edi + 8]
add eax, dword [edi + 0x10]
mov cl, dl
add eax, ebp
xor ebp, ebp
cmp dword [esp + 0x74], ebp
jle 0x4e08c4
mov dl, byte [eax]
mov ebx, dword [esi + 0xc]
and dl, cl
neg dl
sbb dl, dl
mov byte [ebx + ebp], dl
movzx edx, cl
and edx, 1
add eax, edx
inc ebp
ror cl, 1
cmp ebp, dword [esp + 0x74]
jl 0x4e08a1
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
push eax
push 0
push ebx
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [esp + 0x6c]
inc ebx
sub dword [esp + 0x34], 1
mov dword [esp + 0x14], ebx
jne 0x4e0880
jmp 0x4e1320
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov ebp, dword [esp + 0x6c]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501520
cmp eax, ebp
jle 0x4e0910
mov ebp, eax
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501540
inc eax
cmp eax, dword [esp + 0x10]
jge 0x4e093e
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x1c], edx
call fcn.00501560
cmp eax, dword [esp + 0x70]
jle 0x4e0965
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501580
inc eax
cmp eax, dword [esp + 0x24]
jge 0x4e0993
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
cmp ebp, eax
jge 0x4e1320
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jge 0x4e1320
sub ebx, dword [esp + 0x6c]
sub eax, ebp
cmp dword [edi + 0x14], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
lea ecx, [ebx + ebp]
je 0x4e0ac3
mov ebx, ecx
and ecx, 7
mov edx, 0x80
sar edx, cl
sar ebx, 3
sub eax, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
jmp 0x4e09fc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [edi + 8]
imul eax, ecx
add eax, dword [edi + 0x10]
mov dword [esp + 0x30], ecx
add eax, ebx
mov byte [esp + 0x20], dl
mov ecx, ebp
mov bl, byte [eax]
and bl, dl
mov edx, dword [esi + 0xc]
neg bl
sbb bl, bl
mov byte [ecx + edx], bl
mov dl, byte [esp + 0x20]
movzx ebx, dl
and ebx, 1
add eax, ebx
mov ebx, dword [esp + 0x10]
ror dl, 1
inc ecx
cmp ecx, ebx
mov byte [esp + 0x20], dl
jl 0x4e0a17
mov ecx, dword [edi]
imul ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
add ecx, dword [edi + 0x14]
mov edx, dword [esi + 0x10]
add ecx, dword [esp + 0x2c]
push eax
add ecx, ebp
push ecx
add edx, ebp
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x28]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x10]
dec ebx
push ebx
push ebp
push edx
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501330
test eax, eax
je 0x4e0aab
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x1c]
add edx, ebp
push edx
add eax, ebp
push eax
push ecx
push ebx
push ebp
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x4e09f0
jmp 0x4e1320
mov edx, ecx
and ecx, 7
mov ebx, 0x80
sar ebx, cl
sar edx, 3
sub eax, dword [esp + 0x70]
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
jmp 0x4e0af0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, ecx
imul eax, dword [edi + 8]
add eax, dword [edi + 0x10]
mov ecx, ebp
add eax, edx
mov dl, bl
mov byte [esp + 0x20], dl
mov bl, byte [eax]
and bl, dl
mov edx, dword [esi + 0xc]
neg bl
sbb bl, bl
mov byte [ecx + edx], bl
mov dl, byte [esp + 0x20]
movzx ebx, dl
and ebx, 1
add eax, ebx
mov ebx, dword [esp + 0x10]
ror dl, 1
inc ecx
cmp ecx, ebx
mov byte [esp + 0x20], dl
jl 0x4e0b07
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
push eax
add ecx, ebp
push 0xff
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edx
mov edx, dword [esi + 0x10]
dec ebx
push ebx
push ebp
push ecx
mov ecx, dword [eax + 0x84]
push edx
call fcn.00501330
test eax, eax
je 0x4e0b8b
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x1c]
add eax, ebp
push eax
add ecx, ebp
push ecx
push edx
push ebx
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x4e0ae4
jmp 0x4e1320
cmp eax, 3
jne 0x4e1048
mov ebp, dword [esp + 0x74]
push eax
push ebp
call fcn.00497310
add esp, 8
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x20], eax
je 0x4e0d3c
cmp dword [edi + 0x14], 0
mov ecx, dword [esp + 0x78]
je 0x4e0c9f
test ecx, ecx
jle 0x4e1036
mov eax, ebp
mov ebp, dword [esp + 0x68]
lea edx, [eax + eax*2]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x6c]
lea eax, [edx + eax - 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
sub eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0x2c]
imul edx, ebp
add edx, dword [edi + 0x10]
lea eax, [ebx + ebx*2]
push ecx
add edx, eax
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x74], 0
jle 0x4e0c54
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov dl, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 2], cl
add eax, 3
sub dword [esp + 0x14], 1
jne 0x4e0c40
mov ecx, dword [edi]
mov eax, dword [esp + 0x20]
imul ecx, ebp
add ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x30]
push eax
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [edx + ebp]
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
sub dword [esp + 0x34], 1
jne 0x4e0c06
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00497230
add esp, 4
jmp 0x4e1320
test ecx, ecx
jle 0x4e1036
mov eax, dword [esp + 0x68]
lea edx, [ebx + ebx*2]
mov ebx, dword [esp + 0x70]
sub eax, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x20]
lea eax, [ebp + ebp*2]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + eax]
imul ecx, dword [edi + 8]
add ecx, dword [edi + 0x10]
add ecx, dword [esp + 0x30]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
test ebp, ebp
jle 0x4e0d05
mov dword [esp + 0x14], ebp
mov cl, byte [eax]
mov dl, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 2], cl
add eax, 3
sub dword [esp + 0x14], 1
jne 0x4e0cf1
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x70]
push 0
push ebx
lea ecx, [eax + ebp - 1]
push ecx
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [esp + 0x6c]
inc ebx
sub dword [esp + 0x34], 1
jne 0x4e0cc0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00497230
add esp, 4
jmp 0x4e1320
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x84]
mov ebp, dword [esp + 0x6c]
push edx
call fcn.00501520
cmp eax, ebp
jle 0x4e0d5b
mov ebp, eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x84]
push edx
call fcn.00501540
inc eax
cmp eax, dword [esp + 0x10]
jge 0x4e0d89
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501560
cmp eax, dword [esp + 0x70]
jle 0x4e0db0
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501580
inc eax
cmp eax, dword [esp + 0x24]
jge 0x4e0dde
mov dword [esp + 0x24], eax
cmp ebp, dword [esp + 0x10]
jge 0x4e1036
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x18], edx
jge 0x4e1036
cmp dword [edi + 0x14], 0
mov ecx, dword [esp + 0x10]
je 0x4e0f1f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
dec ecx
sub eax, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
imul edx, eax
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
add edx, dword [edi + 0x14]
mov eax, dword [esi + 0xc]
add edx, ebx
push ecx
add edx, ebp
push edx
add eax, ebp
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 0xc]
push ebp
push ecx
mov ecx, dword [eax + 0x84]
push edx
call fcn.00501330
test eax, eax
je 0x4e0efa
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 8]
imul edx, dword [esp + 0x30]
lea eax, [eax + eax*2]
push eax
mov eax, ebx
sub eax, dword [esp + 0x70]
add eax, ebp
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x24]
add ecx, edx
add ecx, dword [edi + 0x10]
push ecx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x18], 0
jle 0x4e0ed9
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
mov dl, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 2], cl
add eax, 3
sub dword [esp + 0x14], 1
jne 0x4e0ec5
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
add ecx, ebp
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x4e0e25
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00497230
add esp, 4
jmp 0x4e1320
mov edx, dword [esp + 0x18]
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
dec ecx
sub eax, dword [esp + 0x70]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
push eax
add ecx, ebp
push 0xff
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xc]
push ebp
push edx
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501330
test eax, eax
je 0x4e1023
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax]
mov edx, ebx
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
lea eax, [edx + ebp]
mov edx, dword [esp + 0x18]
lea edx, [edx + edx*2]
push edx
mov edx, dword [edi + 8]
imul edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
lea eax, [eax + eax*2]
add edx, eax
add edx, dword [edi + 0x10]
push edx
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x18], 0
jle 0x4e0feb
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov cl, byte [eax]
mov dl, byte [eax + 2]
mov byte [eax], dl
mov byte [eax + 2], cl
add eax, 3
sub dword [esp + 0x14], 1
jne 0x4e0fd7
mov eax, dword [esi + 4]
imul eax, dword [esp + 0x34]
mov ecx, dword [edi + 8]
imul ecx, dword [esp + 0x30]
mov edx, dword [esi + 0xc]
add eax, ecx
add eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x20]
add edx, ebp
push edx
mov edx, dword [esp + 0x18]
add eax, ecx
push eax
push edx
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x4e0f40
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00497230
add esp, 4
jmp 0x4e1320
test ebp, ebp
je 0x4e1130
cmp dword [edi + 0x14], 0
mov ecx, dword [esp + 0x78]
je 0x4e10cb
test ecx, ecx
jle 0x4e1320
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x68]
lea edx, [eax + edx - 1]
mov eax, dword [esp + 0x70]
sub eax, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
imul eax, ebp
mov edx, dword [edi]
imul ecx, ebx
imul edx, ebp
add edx, dword [edi + 0x14]
add eax, ecx
add eax, dword [edi + 0x10]
add edx, ebx
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
sub dword [esp + 0x14], 1
jne 0x4e1084
jmp 0x4e1320
test ecx, ecx
jle 0x4e1320
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
lea edx, [eax + edx - 1]
mov eax, dword [esp + 0x68]
sub eax, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
imul ecx, ebx
add eax, ebp
imul eax, dword [edi + 8]
add eax, ecx
add eax, dword [edi + 0x10]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x70]
push 0
push ebp
push edx
push eax
push ecx
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
sub dword [esp + 0x14], 1
jne 0x4e10f5
jmp 0x4e1320
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [eax + 0x84]
push edx
mov ebx, ebp
call fcn.00501520
cmp eax, ebp
jle 0x4e1151
mov ebx, eax
mov eax, dword [esp + 0x74]
add ebp, eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x14], ebp
call fcn.00501540
inc eax
cmp eax, ebp
jge 0x4e1179
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x84]
mov ebp, dword [esp + 0x70]
push edx
call fcn.00501560
cmp eax, ebp
jle 0x4e1198
mov ebp, eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
add ecx, eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x80]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x84]
push edx
call fcn.00501580
inc eax
cmp eax, dword [esp + 0x24]
jge 0x4e11c6
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0x10]
jge 0x4e1320
cmp ebp, dword [esp + 0x24]
jge 0x4e1320
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x70]
dec ecx
cmp dword [edi + 0x14], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
je 0x4e12a0
mov eax, dword [esp + 0x28]
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
add eax, ebp
imul edx, eax
sub edx, dword [esp + 0x6c]
mov eax, dword [esi + 0xc]
add edx, dword [edi + 0x14]
push ecx
add edx, dword [esp + 0x30]
add eax, ebx
add edx, ebx
push edx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ebx
push ebp
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501330
test eax, eax
je 0x4e1289
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 8]
add edx, ebx
imul edx, dword [esi + 4]
add eax, ebp
imul ecx, eax
add edx, ecx
add edx, dword [edi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x14]
add ecx, ebx
push ecx
push ebp
push edx
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
cmp ebp, dword [esp + 0x24]
jl 0x4e1201
jmp 0x4e1320
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
push ecx
add edx, ebx
push 0xff
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ebx
push ebp
push ecx
mov ecx, dword [eax + 0x84]
call fcn.00501330
test eax, eax
je 0x4e1319
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
add edx, ebx
imul edx, dword [esi + 4]
add eax, ebp
imul eax, dword [edi + 8]
add edx, eax
add edx, dword [edi + 0x10]
add ecx, ebx
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [edx + ebp]
push eax
push ecx
push ebx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call dword [esp + 0x6c]
inc ebp
cmp ebp, dword [esp + 0x24]
jl 0x4e12a0
mov ecx, dword [esp + 0x58]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00551b9a
add esp, 0x4c
ret 0x24