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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
push ebx
push ebp
xor ebp, ebp
mov dword [eax], ebp
mov eax, dword [esp + 0x9c]
cmp eax, ebp
mov ebx, 1
push esi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x78], ecx
mov dword [edx], ebp
je 0x4bcae3
mov dword [eax], ebp
mov esi, dword [esp + 0x8c]
cmp dword [esi + 0x1c], ebp
jne 0x4bcaf8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov edx, dword [esp + 0xb0]
cmp edx, ebp
push edi
mov edi, dword [esp + 0xac]
je 0x4bcb13
cmp edi, ebp
jne 0x4bd607
mov eax, dword [esi + 0x5e4]
cmp ecx, eax
jl 0x4bcb27
lea ecx, [eax - 1]
mov dword [esp + 0x94], ecx
cmp ecx, ebp
jl 0x4bcc80
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x30], ebp
jg 0x4bd607
mov eax, dword [eax + 0x2c]
cmp eax, ebp
jle 0x4bcc80
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], eax
cmp edi, ebp
jne 0x4bcb5c
cmp edx, ebp
je 0x4bcb74
cmp dword [esi + 0x3a04], ebp
je 0x4bd607
cmp edi, ebp
jne 0x4bcb70
cmp edx, ebp
je 0x4bcb74
mov dword [esp + 0x48], ebp
cmp ecx, ebp
mov edi, dword [esp + 0x98]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
jl 0x4bccd5
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ecx*4]
test dword [eax + 0x38], 0x1e0000
jne 0x4bd607
mov eax, dword [eax + 0x24]
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x4bcbb6
cmp dword [esi + 0x5b84], ebp
jne 0x4bd607
cmp dword [esp + 0xb8], ebp
jge 0x4bcc91
mov ecx, dword [esp + 0x94]
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0x2b38]
imul eax, eax, 0x58
test dword [eax + ecx + 0x18], 0x3000
mov dword [esp + 0xb8], edx
je 0x4bcc91
mov edx, dword [esp + 0x94]
push edx
push esi
call fcn.004ab5c0
add esp, 8
test eax, 0x180000
je 0x4bcc91
mov ecx, dword [esp + 0xb8]
mov edx, dword [esi + 0x3a10]
lea ecx, [ecx + ecx*8]
mov edi, dword [edx + ecx*8 + 4]
lea edx, [edx + ecx*8]
mov ecx, dword [edx]
cmp ecx, edi
jg 0x4bcc91
cmp ecx, dword [esi + 0x5e4]
jge 0x4bcc91
mov edx, dword [esi + 0x138]
mov edx, dword [edx + ecx*4]
mov ebx, dword [edx + 0x14]
mov ebp, dword [esi + 0x2b38]
imul ebx, ebx, 0x58
test dword [ebx + ebp + 0x18], 0x3000
je 0x4bcc91
test eax, 0x80000
je 0x4bcc67
test dword [edx + 0x38], 0x20000
jne 0x4bcc89
test eax, 0x100000
je 0x4bcc77
test dword [edx + 0x38], 0x40000
jne 0x4bcc89
add ecx, 1
cmp ecx, edi
jle 0x4bcc30
jmp 0x4bcc91
mov dword [esp + 0x48], ebp
jmp 0x4bcb54
add dword [esp + 0xb8], 1
mov ebx, dword [esp + 0x94]
cmp dword [esp + 0x7c], ebx
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x40], edi
jle 0x4bccb2
add dword [esp + 0x24], edi
push ebx
push esi
call fcn.004ab5c0
mov edx, dword [esi + 0x138]
mov dword [esp + 0x20], eax
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 0x3c]
add esp, 8
and eax, 0x20
mov dword [esp + 0x7c], eax
jmp 0x4bcd2b
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x514]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call ebx
cmp dword [esp + 0xb8], ebp
mov dword [esp + 0x24], eax
jge 0x4bcd03
mov ecx, dword [esi + 0x39f8]
mov dword [esp + 0xb8], ecx
mov edx, dword [esi + 0x504]
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + 0x514]
sub ecx, dword [edi + 4]
push edx
push eax
push ecx
call ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x40], eax
mov dword [esp + 0x7c], ebp
mov edi, eax
test edi, edi
je 0x4bd607
mov edx, dword [esp + 0xac]
test edx, edx
jne 0x4bcd4b
cmp dword [esp + 0xb4], edx
je 0x4bce21
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x2c]
mov edi, dword [esi + 0x588c]
imul eax, eax, 0x84
mov eax, dword [eax + edi + 4]
mov edi, dword [esi + 0x5884]
imul eax, eax, 0x68
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, edi
test edx, edx
mov edi, dword [eax + 8]
je 0x4bcdc8
mov ecx, dword [esi + 0x510]
mov edx, dword [eax + 0x20]
push 0x5a0
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x94]
mov ebx, eax
mov eax, dword [esi + 0x138]
mov edx, dword [eax + ecx*4]
add ebx, dword [edx + 0x28]
cmp dword [esi + 0x654], 0
mov dword [esp + 0x50], ebx
je 0x4bcdcf
mov eax, dword [esp + 0xb8]
push eax
push esi
call fcn.004bba00
add esp, 8
sub ebx, eax
jmp 0x4bcdcb
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x50], ebx
test edi, edi
mov dword [esp + 0x34], ebx
jle 0x4bce0b
mov eax, dword [esi + 0x588c]
lea ecx, [ecx]
mov ecx, dword [esi + 0x510]
imul edi, edi, 0x84
mov edx, dword [edi + eax + 0x14]
push 0x5a0
push ecx
push edx
call ebp
add dword [esp + 0x34], eax
mov eax, dword [esi + 0x588c]
mov edi, dword [edi + eax + 8]
test edi, edi
jg 0x4bcde0
mov eax, dword [esp + 0x34]
sub eax, ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x88], eax
jmp 0x4bce27
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
test ebx, ebx
jl 0x4bcf7c
mov edi, dword [esp + 0xa8]
test edi, edi
jge 0x4bce46
push ebx
push esi
call fcn.004aea30
add esp, 8
mov edi, eax
cmp dword [esp + 0xac], 0
jne 0x4bce7b
cmp dword [esp + 0xb4], 0
jne 0x4bce7b
mov eax, dword [esi + 0x500]
mov ecx, dword [esi + 0x510]
push eax
push ecx
push edi
push ebx
push esi
call fcn.004f8120
add esp, 0xc
push eax
call ebp
jmp 0x4bcf07
mov edx, dword [esi + 0x500]
mov eax, dword [esi + 0x510]
push edx
push eax
push edi
push 0xffffffffffffffff
push esi
call fcn.004f8120
add esp, 0xc
push eax
call ebp
mov ecx, dword [esi + 0x39c0]
mov dword [esp + 0x10], eax
mov eax, edi
imul eax, eax, 0x98
cmp dword [eax + ecx + 0x14], 1
jle 0x4bcf0b
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebx*4]
mov edx, dword [ecx + 0x14]
mov ecx, dword [esi + 0x2b38]
imul edx, edx, 0x58
test dword [edx + ecx + 0x18], 0x3000
jne 0x4bcf0b
mov edx, dword [esi + 0x39c0]
mov ebx, dword [eax + edx + 0x14]
add eax, edx
lea ecx, [ebx - 1]
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fmul dword [eax + 0x18]
fimul dword [esi + 0x510]
call fcn.005ac350
mov edx, dword [esp + 0x10]
sub edx, eax
mov eax, edx
cdq
idiv ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ebx*4]
cmp dword [eax + 0x2c], 0
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x14], ecx
push 0x5a0
je 0x4bcf3f
mov edx, dword [esi + 0x510]
mov eax, dword [esi + 0x5a8]
push edx
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
jmp 0x4bcf4d
mov eax, dword [esi + 0x510]
mov ecx, dword [esi + 0x5a8]
push eax
push ecx
call ebp
imul edi, edi, 0x98
mov edx, dword [esi + 0x39c0]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + edi + 0x14]
push ebx
push esi
mov dword [esp + 0x80], eax
call fcn.004ab5c0
add esp, 8
mov dword [esp + 0x68], eax
xor ebx, ebx
jmp 0x4bcfbe
mov edi, dword [esp + 0x98]
mov ecx, dword [esi + 0x500]
mov eax, dword [edi + 8]
mov edx, dword [esi + 0x510]
sub eax, dword [edi]
push ecx
push edx
push eax
call ebp
mov ecx, dword [esi + 0x500]
mov edx, dword [esi + 0x510]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
push edx
push eax
call ebp
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x2c]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp dword [esi + 0x654], ebx
mov edi, 1
mov dword [esp + 0x60], eax
je 0x4bcff1
mov ecx, dword [esp + 0xb8]
push ecx
push esi
call fcn.004bba00
add esp, 8
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
add edx, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x80], edx
jmp 0x4bd010
mov ecx, dword [esi + 0x514]
push 0x5a0
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
push ecx
push 0xb4
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], eax
call ebp
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
test dword [esi + 0xa15c], 0x100000
mov dword [esp + 0x84], eax
mov dword [esp + 0x70], 5
jne 0x4bd06d
cmp dword [esi + 0x3a68], ebx
jne 0x4bd071
mov dword [esp + 0x70], edi
cmp dword [esi + 0x734], edi
mov dword [esp + 0x20], edi
jle 0x4bd607
jmp 0x4bd090
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x72c]
imul ecx, ecx, 0x98
and dword [ecx + edx + 0x28], 0xffffefff
lea eax, [ecx + edx + 0x28]
mov eax, dword [esi + 0x72c]
cmp dword [ecx + eax], 0
mov dword [esp + 0x1c], ecx
je 0x4bd578
mov edx, dword [esp + 0x1c]
mov ecx, eax
lea eax, [edx + ecx]
mov ecx, dword [eax + 0x28]
test ecx, 0x400000
jne 0x4bd578
cmp dword [eax + 0x60], 0x14
je 0x4bd578
test ecx, 0x100
jne 0x4bd578
cmp dword [esi + 0x3a04], 0
je 0x4bd103
test ecx, 0x8000
je 0x4bd578
mov ebp, dword [eax + 0x2c]
test ebp, ebp
mov dword [esp + 0x44], ebp
jl 0x4bd122
cmp ebp, dword [esi + 0x5e4]
jge 0x4bd122
push ebp
push esi
call fcn.004ab5c0
add esp, 8
jmp 0x4bd124
xor eax, eax
mov ecx, dword [esi + 0x72c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0xb8]
lea ebx, [edx + ecx]
mov ecx, dword [ebx + 0x24]
cmp ecx, edi
jne 0x4bd1a1
test eax, 0x180000
je 0x4bd19d
test eax, 0x80000
mov ebp, dword [esi + 0x3a10]
lea edx, [edi + edi*8]
mov edx, dword [ebp + edx*8 + 0x2c]
je 0x4bd177
mov ebp, dword [esi + 0x39c4]
mov edi, edx
imul edi, edi, 0x70
cmp dword [edi + ebp + 0x30], 0
jge 0x4bd578
mov edi, dword [esp + 0xb8]
test eax, 0x100000
je 0x4bd199
mov edi, dword [esi + 0x39c4]
imul edx, edx, 0x70
cmp dword [edi + edx + 0x44], 0
jge 0x4bd578
mov edi, dword [esp + 0xb8]
mov ebp, dword [esp + 0x44]
cmp ecx, edi
je 0x4bd210
test eax, eax
je 0x4bd578
test ecx, ecx
jl 0x4bd578
test eax, 0x80000
je 0x4bd1dd
mov edx, dword [esi + 0x3a10]
mov edi, dword [esp + 0xb8]
lea ebp, [ecx + ecx*8]
mov ebp, dword [edx + ebp*8 + 0x2c]
lea edi, [edi + edi*8]
cmp ebp, dword [edx + edi*8 + 0x40]
jne 0x4bd578
mov ebp, dword [esp + 0x44]
test eax, 0x100000
je 0x4bd205
mov edx, dword [esi + 0x3a10]
mov edi, dword [esp + 0xb8]
lea ecx, [ecx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x2c]
lea edi, [edi + edi*8]
cmp ecx, dword [edx + edi*8 + 0x44]
jne 0x4bd578
test eax, 0x60000
jne 0x4bd578
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4bd224
test eax, eax
je 0x4bd224
cmp ecx, eax
jne 0x4bd578
mov edx, dword [ebx + 0x28]
test edx, 0x4000
jne 0x4bd578
xor ecx, ecx
cmp dword [ebx + 0x48], ecx
jle 0x4bd23d
mov ecx, dword [ebx + 0x50]
cmp dword [esp + 0x48], 0
je 0x4bd250
cmp dword [esp + 0x6c], ecx
jne 0x4bd578
jmp 0x4bd258
test ecx, ecx
jg 0x4bd578
test ebp, ebp
jl 0x4bd2fa
cmp ebp, dword [esi + 0x5e4]
jge 0x4bd2fa
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x4bd29e
test eax, 0xa0000
je 0x4bd287
test ecx, 0x140000
jne 0x4bd578
test eax, 0x140000
je 0x4bd29e
test ecx, 0xa0000
jne 0x4bd578
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4bd2b2
test ecx, ecx
jne 0x4bd2b6
cmp dword [ebx + 0x60], 0x4b
jne 0x4bd578
jmp 0x4bd2c1
test ecx, ecx
je 0x4bd2c5
test eax, 0x1e0000
je 0x4bd578
mov ecx, dword [esp + 0x18]
test ecx, 0x100000
je 0x4bd2dc
test eax, 0x80000
jne 0x4bd578
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4bd2fa
cmp eax, ecx
jne 0x4bd2fa
cmp dword [ebx + 0x60], 0
jne 0x4bd578
test edx, 0x380
jne 0x4bd578
mov edx, dword [esi + 0x514]
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x5a0
push edx
push eax
call edi
mov ecx, dword [esi + 0x72c]
mov edx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [edx + ecx]
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x514]
add edx, dword [eax + 8]
push 0x5a0
push ecx
push edx
call edi
mov ebp, eax
mov eax, dword [esp + 0x70]
lea ecx, [ebx + eax]
cmp dword [esp + 0x4c], ecx
mov dword [esp + 0x44], ebp
jle 0x4bd578
mov edx, dword [esp + 0x74]
mov ecx, ebp
sub ecx, eax
cmp edx, ecx
jge 0x4bd578
xor eax, eax
cmp dword [esp + 0xac], eax
jne 0x4bd377
cmp dword [esp + 0xb0], eax
je 0x4bd3c5
cmp dword [esp + 0x5c], eax
jle 0x4bd3c5
mov ecx, dword [esp + 0x84]
mov edi, ebx
sub edi, ecx
cmp edi, edx
jge 0x4bd396
lea edx, [ecx + ecx]
mov eax, ebx
sub eax, edx
mov dword [esp + 0x74], eax
mov eax, 1
lea edx, [ecx + ebp]
cmp edx, dword [esp + 0x4c]
jle 0x4bd3b4
lea eax, [ebp + ecx*2]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], 0
jmp 0x4bd578
test eax, eax
je 0x4bd3c5
mov dword [esp + 0x20], 0
jmp 0x4bd578
mov ecx, dword [esi + 0x72c]
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x510]
sub edx, dword [eax + 0x20]
push 0x5a0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x510]
mov edi, eax
mov eax, dword [esi + 0x72c]
add eax, ecx
mov ecx, dword [eax + 0x20]
add ecx, dword [eax + 0x10]
push 0x5a0
add ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x72c]
mov ecx, dword [esp + 0x1c]
test dword [ecx + edx + 0x28], 0x2000
je 0x4bd43f
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jle 0x4bd433
mov edi, ecx
mov edx, dword [esp + 0x10]
add ecx, edx
cmp eax, ecx
jge 0x4bd43f
mov eax, ecx
cmp dword [esp + 0xac], 0
je 0x4bd45d
cmp eax, dword [esp + 0x50]
jl 0x4bd578
cmp edi, dword [esp + 0x34]
jg 0x4bd578
cmp dword [esp + 0x78], 1
jle 0x4bd480
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ecx, edx
cmp edi, ecx
jg 0x4bd578
cmp eax, dword [esp + 0x14]
jl 0x4bd578
cmp dword [esp + 0x7c], 0
mov edx, dword [esp + 0x14]
je 0x4bd49b
mov ecx, eax
sub ecx, edi
lea edi, [edx + edx]
sub edi, eax
add edi, dword [esp + 0x10]
lea eax, [ecx + edi]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
cmp ecx, edx
jg 0x4bd4cb
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
add edx, ebp
mov ebp, dword [esp + 0x44]
add ecx, eax
cmp ecx, edx
jl 0x4bd4cb
cmp ebp, dword [esp + 0x64]
mov dword [esp + 0x3c], 1
jle 0x4bd4cb
mov dword [esp + 0x64], ebp
cmp dword [esp + 0x58], 0
je 0x4bd4f1
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x4bd4e3
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ebx
jmp 0x4bd53e
cmp edi, dword [esp + 0x38]
jl 0x4bd509
cmp eax, dword [esp + 0x28]
jg 0x4bd509
cmp ebx, dword [esp + 0x54]
jl 0x4bd509
cmp ebp, dword [esp + 0x30]
jle 0x4bd542
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x4bd51a
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
cmp edi, dword [esp + 0x38]
jge 0x4bd524
mov dword [esp + 0x38], edi
cmp eax, dword [esp + 0x28]
jle 0x4bd52e
mov dword [esp + 0x28], eax
cmp ebx, dword [esp + 0x54]
jge 0x4bd538
mov dword [esp + 0x54], ebx
cmp ebp, dword [esp + 0x30]
jle 0x4bd542
mov dword [esp + 0x30], ebp
mov eax, dword [esi + 0x72c]
mov ecx, dword [esp + 0x1c]
or dword [ecx + eax + 0x28], 0x1000
mov edx, dword [esi + 0x72c]
test dword [ecx + edx + 0x28], 0x2000
lea eax, [ecx + eax + 0x28]
mov dword [esp + 0x58], 0
je 0x4bd578
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esi + 0x734]
mov dword [esp + 0x20], eax
jl 0x4bd090
cmp dword [esp + 0x58], 0
jne 0x4bd607
cmp dword [esp + 0x5c], 0
jne 0x4bd5d8
cmp dword [esp + 0xb0], 0
je 0x4bd5d8
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x10]
lea eax, [ecx + ebx]
cmp eax, edi
jl 0x4bd5e4
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x5c], 1
mov edi, 1
xor ebx, ebx
jmp 0x4bd010
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0xac]
test ebp, ebp
je 0x4bd611
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
add eax, dword [esp + 0x88]
cmp eax, edi
jge 0x4bd611
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
sub eax, edx
jns 0x4bd61f
xor eax, eax
sub ecx, edx
cmp ecx, eax
jge 0x4bd627
mov ecx, eax
cmp ecx, edi
jle 0x4bd62d
mov ecx, edi
cmp eax, dword [esp + 0x2c]
jge 0x4bd635
xor eax, eax
lea edx, [ecx + ebx]
cmp edx, edi
jle 0x4bd63e
mov ecx, edi
cmp dword [esp + 0x94], 0
jl 0x4bd666
test eax, eax
jne 0x4bd666
mov edx, dword [esi + 0x3434]
mov edx, dword [edx + 0x140]
mov edx, dword [edx + 0x15c]
add edx, ecx
cmp edx, edi
jl 0x4bd666
mov ecx, edi
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
mov dword [edx], eax
mov edx, ecx
sub edx, eax
test eax, eax
mov dword [ebx], edx
jne 0x4bd684
cmp ecx, edi
jge 0x4bd6f6
cmp dword [esp + 0x3c], 0
jne 0x4bd6fd
test ebp, ebp
je 0x4bd6e9
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0xa4]
test ebp, ebp
je 0x4bd6e9
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jle 0x4bd6e9
mov eax, 0x55555556
imul dword [esp + 0x40]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x64
jle 0x4bd6c0
mov eax, 0x64
cmp dword [esp + 0xac], 0
jne 0x4bd6cf
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esi + 0x514]
push 0x5a0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub edi, ebx
add eax, edi
mov dword [ebp], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret
cmp dword [esp + 0x3c], 0
je 0x4bd68f
mov edi, dword [esp + 0x64]
jmp 0x4bd693