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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 0x148
lea edi, [esi + 4]
push 0xff
push edi
call sub.MSVCR100.dll_memset
mov ecx, 8
mov word [esi + 0xc], cx
xor ecx, ecx
mov word [esi + 0xe], cx
xor edx, edx
mov ecx, 7
mov word [esi + 0x10], cx
xor ecx, ecx
add esp, 0xc
xor ebx, ebx
mov word [esi + 0x1c], bx
mov ebx, 8
mov word [esi + 0x34], bx
mov word [esi + 0x36], bx
mov ebx, 0xf
mov word [esi + 0x38], bx
mov ebx, 8
mov word [esi + 0x3a], bx
mov ebx, 9
mov word [esi + 0x3c], bx
mov ebx, 0x10
mov word [esi + 0x5c], bx
mov word [esi + 0x5e], bx
mov ebx, 0x1f
mov word [esi + 0x60], bx
mov ebx, 0x18
mov word [esi + 0x62], bx
mov ebx, 0x19
mov word [esi + 0x64], bx
mov ebx, 0x20
mov word [esi + 0x6e], bx
mov ebx, 0xd8
mov word [esi + 0x84], bx
mov ebx, 0x20
mov word [esi + 0x86], bx
mov ebx, 0xf7
mov word [esi + 0x88], bx
mov ebx, 0x39
mov word [esi + 0x8a], bx
mov ebx, 0x3a
mov word [esi + 0x8c], bx
mov ebx, 0x68
mov word [esi + 0x8e], bx
mov ebx, 0x21
mov al, 2
mov word [esi + 0x12], cx
mov word [esi + 0x14], cx
mov word [esi + 0x16], cx
mov ecx, 1
mov word [esi + 0x94], bx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
mov byte [edi], 7
mov byte [esi + 5], al
mov byte [esi + 0xa], dl
mov dword [esi + 0x18], 0x1010101
mov byte [esi + 0x22], cl
mov byte [esi + 0x25], cl
mov byte [esi + 0x28], dl
mov dword [esi + 0x3e], 0x2020000
mov dword [esi + 0x42], 0x80100
mov byte [esi + 0x4a], cl
mov byte [esi + 0x4d], al
mov word [esi + 0x50], 0x100
mov dword [esi + 0x66], 0x2020038
mov dword [esi + 0x6a], 0x100203
mov word [esi + 0x72], 0x201
mov word [esi + 0x78], 0x100
mov word [esi + 0x75], 0x202
mov word [esi + 0x7b], 0x102
mov dword [esi + 0x90], 0x2030303
mov ebx, 0x40
mov word [esi + 0x96], bx
mov ebx, 8
mov word [esi + 0xac], bx
mov ebx, pe_nt_image_headers32
mov word [esi + 0xae], bx
mov ebx, 0xff
mov word [esi + 0xb0], bx
mov ebx, 0x2c1
mov word [esi + 0xb2], bx
mov ebx, 0x2c2
mov word [esi + 0xb4], bx
mov ebx, 0x2f0
mov word [esi + 0xb6], bx
mov ebx, 0x1d1
mov word [esi + 0xbc], bx
mov word [esi + 0x9a], 0x202
mov word [esi + 0xa0], 0x100
mov word [esi + 0x9d], 0x202
mov word [esi + 0xa3], 0x102
mov dword [esi + 0xb8], 0x2020303
mov ebx, 0x1f0
mov word [esi + 0xbe], bx
mov word [esi + 0xc2], 0x202
mov word [esi + 0xc8], 0x100
mov word [esi + 0xc5], 0x202
mov word [esi + 0xcb], 0x102
mov ebx, 8
mov word [esi + 0xd4], bx
mov ebx, 0x100
mov word [esi + 0xd6], bx
mov ebx, 0x107
mov word [esi + 0xd8], bx
mov ebx, 0x2d9
mov word [esi + 0xda], bx
mov ebx, 0x2da
mov word [esi + 0xdc], bx
xor ebx, ebx
mov word [esi + 0xde], bx
mov word [esi + 0xe0], 0x303
mov dword [esi + 0xe2], 0x1e10100
mov byte [esi + 0xea], al
mov byte [esi + 0xed], al
mov word [esi + 0xf0], 0x100
mov ebx, 8
mov word [esi + 0xfc], bx
mov ebx, 0x108
mov word [esi + 0xfe], bx
mov ebx, 0x10f
mov word [esi + 0x100], bx
mov ebx, 0x2f1
mov word [esi + 0x102], bx
xor ebx, ebx
mov word [esi + 0x104], bx
mov word [esi + 0x106], bx
mov word [esi + 0x108], 2
mov dword [esi + 0x10a], 0x1f10100
mov byte [esi + 0x112], al
mov byte [esi + 0x115], cl
mov byte [esi + 0x118], dl
cmp byte [edi], dl
jbe 0x48597c
movzx edx, byte [edi]
mov di, word [ebp - 0xc]
lea eax, [esi + 0xc]
mov dword [ebp - 8], edx
lea ecx, [ecx]
movzx edx, word [eax]
movzx ebx, byte [eax + 0xf]
add dword [ebp - 4], edx
imul bx, dx
add di, bx
add eax, 0x28
sub dword [ebp - 8], ecx
jne 0x485950
mov ax, word [ebp - 4]
mov word [esi + 6], di
pop edi
mov word [esi + 8], ax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [ebp - 0xc]
mov dx, word [ebp - 4]
mov word [esi + 6], cx
pop edi
mov word [esi + 8], dx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret