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

Disassembly:
sub esp, 0x70
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x84]
mov eax, ebp
sub eax, ebx
sar eax, 4
push esi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x8c]
push edi
sar esi, 1
push eax
lea ecx, [ebp - 0x10]
shl esi, 4
push ecx
add esi, ebx
push esi
push ebx
call fcn.00495b80
add esp, 0x10
mov ecx, esi
lea edi, [esi + 0x10]
cmp ebx, esi
jae 0x49626d
add esi, 0xfffffff4
mov eax, dword [esi]
mov ebp, dword [esi + 0x10]
cmp eax, ebp
jne 0x496245
mov edx, dword [esi - 4]
cmp edx, dword [ecx]
setl dl
test dl, dl
jne 0x496266
cmp ebp, eax
jne 0x496255
mov eax, dword [ecx]
cmp eax, dword [esi - 4]
setl al
test al, al
jne 0x496266
sub ecx, 0x10
sub esi, 0x10
cmp ebx, ecx
jb 0x496237
mov ebp, dword [esp + 0x8c]
cmp edi, ebp
jae 0x49629c
mov esi, dword [ecx + 4]
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x49627f
mov edx, dword [edi]
cmp edx, dword [ecx]
setl dl
test dl, dl
jne 0x49629c
cmp esi, eax
jne 0x49628e
mov eax, dword [ecx]
cmp eax, dword [edi]
setl al
test al, al
jne 0x49629c
add edi, 0x10
cmp edi, ebp
jb 0x496274
mov eax, edi
mov ebp, ecx
cmp eax, dword [esp + 0x8c]
jae 0x496329
lea ecx, [ecx]
mov esi, dword [ecx + 4]
mov edx, dword [eax + 4]
cmp esi, edx
jne 0x4962be
mov ebx, dword [ecx]
cmp ebx, dword [eax]
setl bl
test bl, bl
jne 0x49631d
cmp edx, esi
jne 0x4962cd
mov edx, dword [eax]
cmp edx, dword [ecx]
setl dl
test dl, dl
jne 0x496329
mov edx, edi
mov ebx, dword [edx + 4]
mov esi, dword [edx]
mov dword [esp + 0x24], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0x28], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x2c], ebx
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [edx + 0xc], ebx
mov edx, dword [esp + 0x24]
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
add edi, 0x10
mov dword [eax + 0xc], edx
add eax, 0x10
cmp eax, dword [esp + 0x8c]
jb 0x4962b0
cmp ebp, dword [esp + 0x88]
jbe 0x4963c5
lea esi, [ebp - 0x10]
lea esp, [esp]
mov edx, dword [esi + 4]
mov ebx, dword [ecx + 4]
cmp edx, ebx
jne 0x49634e
mov ebx, dword [esi]
cmp ebx, dword [ecx]
setl bl
test bl, bl
jne 0x4963af
mov ebx, dword [ecx + 4]
cmp ebx, edx
jne 0x496360
mov edx, dword [ecx]
cmp edx, dword [esi]
setl dl
test dl, dl
jne 0x4963be
mov ebx, dword [ecx - 0xc]
mov edx, dword [ecx - 0x10]
sub ecx, 0x10
mov dword [esp + 0x34], ebx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x38], ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esi]
mov dword [ecx], ebx
mov ebx, dword [esi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [esi + 0xc]
mov dword [ecx + 0xc], ebx
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xc], edx
sub ebp, 0x10
sub esi, 0x10
cmp dword [esp + 0x88], ebp
jb 0x496340
cmp ebp, dword [esp + 0x88]
jne 0x496476
cmp eax, dword [esp + 0x8c]
je 0x496555
cmp edi, eax
je 0x496418
mov ebx, dword [ecx + 8]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x48], ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 0x4c], ebx
mov ebx, dword [edi]
mov dword [ecx], ebx
mov ebx, dword [edi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edi + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [edi + 0xc]
mov dword [ecx + 0xc], ebx
mov dword [edi], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 4], esi
mov dword [edi + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [edi + 0xc], edx
mov esi, ecx
mov ebx, dword [esi]
mov dword [esp + 0x10], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [esi + 8]
mov edx, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
mov ebx, dword [edx]
mov dword [esi], ebx
mov ebx, dword [edx + 4]
mov dword [esi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [esi + 8], ebx
mov ebx, dword [edx + 0xc]
mov dword [esi + 0xc], ebx
mov esi, dword [esp + 0x10]
mov dword [edx], esi
mov esi, dword [esp + 0x14]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x18]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x1c]
add edi, 0x10
add ecx, 0x10
add eax, 0x10
mov dword [edx + 0xc], esi
jmp 0x4962a0
sub ebp, 0x10
cmp eax, dword [esp + 0x8c]
jne 0x49650f
sub ecx, 0x10
cmp ebp, ecx
je 0x4964cb
mov ebx, dword [ebp + 8]
mov edx, dword [ebp]
mov esi, dword [ebp + 4]
mov dword [esp + 0x58], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x5c], ebx
mov ebx, dword [ecx]
mov dword [ebp], ebx
mov ebx, dword [ecx + 4]
mov dword [ebp + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [ebp + 8], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp + 0xc], ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0xc], edx
mov ebx, dword [ecx + 8]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
sub edi, 0x10
mov dword [esp + 0x68], ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 0x6c], ebx
mov ebx, dword [edi]
mov dword [ecx], ebx
mov ebx, dword [edi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edi + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [edi + 0xc]
mov dword [ecx + 0xc], ebx
mov dword [edi], edx
mov edx, dword [esp + 0x68]
mov dword [edi + 4], esi
mov dword [edi + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [edi + 0xc], edx
jmp 0x4962a0
mov ebx, dword [eax + 8]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x78], ebx
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ebx
mov ebx, dword [ebp]
mov dword [eax], ebx
mov ebx, dword [ebp + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [eax + 0xc], ebx
mov dword [ebp], edx
mov edx, dword [esp + 0x78]
mov dword [ebp + 4], esi
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0xc], edx
add eax, 0x10
jmp 0x4962a0
mov eax, dword [esp + 0x84]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x70
ret