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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
xor edx, edx
push edi
cmp dword [esi + 0x50], edx
je 0x492306
cmp dword [esi + 0x70], 0x32
jle 0x49230e
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edx
mov ebp, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
dec ebp
and ebp, dword [esp + 0x38]
imul ebp, ecx
cmp ecx, edx
jle 0x492363
mov eax, dword [esi + 0x68]
lea edi, [ebp*8]
sub edi, ebp
add edi, edi
add edi, edi
mov dword [esp + 0x14], edi
add eax, edi
test dword [eax + 8], 0x80000000
je 0x49235b
mov edi, dword [esp + 0x38]
cmp dword [eax], edi
jne 0x49235b
movsx edi, word [eax + 4]
cmp edi, dword [esp + 0x3c]
jne 0x49235b
movsx edi, word [eax + 6]
cmp edi, dword [esp + 0x40]
je 0x492392
inc edx
add eax, 0x1c
cmp edx, ecx
jl 0x492336
mov edx, dword [esp + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call eax
test eax, eax
jne 0x49244e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov ecx, dword [esi + 0x68]
lea edi, [edx + ebp]
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
mov ebx, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [ecx], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x10]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x14]
mov dword [ecx + 8], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x18]
xor ebp, ebp
mov dword [ecx + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edi
cmp dword [esi + 0x7c], ebp
jle 0x49241b
mov edi, dword [esp + 0x14]
cmp ebp, edx
je 0x49240e
mov edx, dword [esi + 0x68]
mov ebx, dword [edi + edx + 8]
mov edx, dword [edx + eax + 8]
and ebx, 0x7fffffff
and edx, 0x7fffffff
cmp ebx, edx
jge 0x49240a
mov edx, dword [esi + 0x68]
inc dword [edi + edx + 8]
lea edx, [edi + edx + 8]
mov edx, dword [esp + 0x10]
inc ebp
add edi, 0x1c
cmp ebp, dword [esi + 0x7c]
jl 0x4923e0
mov edi, dword [esp + 0x38]
mov edx, dword [esi + 0x68]
mov dword [eax + edx + 8], 0x80000000
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x74]
imul edx, edi
add edx, dword [esi + 0x64]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], 0
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x6c]
jg 0x49258d
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 0x70]
jg 0x49258d
cmp dword [esi + 0x50], 0
je 0x492477
imul ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x492484
add eax, 7
sar eax, 3
imul eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x7c]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x49254f
lea edi, [ebp*8]
sub edi, ebp
add edi, edi
add edi, edi
mov edx, dword [esi + 0x68]
mov edx, dword [edi + edx + 8]
dec eax
and edx, 0x7fffffff
cmp edx, eax
mov eax, dword [esi + 0x68]
jne 0x492534
mov dword [edi + eax + 8], 0x80000000
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x38]
mov dword [edi + edx], eax
mov edx, dword [esi + 0x68]
mov ax, word [esp + 0x3c]
mov word [edi + edx + 4], ax
mov edx, dword [esi + 0x68]
mov ax, word [esp + 0x40]
mov word [edi + edx + 6], ax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x18]
mov dword [edi + edx + 0xc], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x1c]
mov dword [edi + edx + 0x10], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x20]
mov dword [edi + edx + 0x14], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
mov dword [edi + edx + 0x18], eax
mov edx, dword [esp + 0x2c]
lea ebx, [ecx + ebp]
imul ebx, dword [esi + 0x74]
mov ecx, dword [esp + 0x14]
add ebx, dword [esi + 0x64]
push ecx
push edx
push ebx
call fcn.00511be0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x49253c
inc dword [edi + eax + 8]
lea eax, [edi + eax + 8]
mov eax, dword [esi + 0x7c]
inc ecx
add edi, 0x1c
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4924a4
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x44]
mov ecx, 7
lea esi, [esp + 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0
je 0x49259c
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004a2fd0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10
mov edi, dword [esp + 0x44]
mov ecx, 7
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10