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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6a9f0a
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x76f950]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xd8], ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
call fcn.0047e5b0
mov esi, eax
lea eax, [esp + 0x20]
mov ecx, dword [esi]
push eax
push dword [0x79683c]
mov dword [esp + 0x1c], esi
push 2
push esi
call dword [ecx + 0x64]
add esp, 0x10
test eax, eax
jns 0x4d002c
mov eax, dword [0x789ce0]
mov ecx, dword [0x789cdc]
test eax, eax
cmovne ecx, eax
call fcn.00452890
mov ecx, dword [esp + 0xd8]
mov edx, ebx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
add edx, edi
sar eax, 3
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], edi
test eax, eax
jle 0x4d1239
nop
cmp ebx, edx
jae 0x4d1239
mov eax, dword [ecx]
mov ecx, dword [eax + edi*8]
mov edi, dword [eax + edi*8 + 4]
mov dword [esp + 0x24], edi
cmp ecx, 0x1b
ja case.default.0x4d007e
jmp dword [ecx*4 + 0x4d1260]
test edi, edi
jns 0x4d008d
mov edi, edx
sub edi, ebx
mov dword [esp + 0xc8], 0
mov dword [esp + 0x1f0], 0
lea eax, [esp + 0xc8]
push eax
push edi
mov ecx, ebx
call fcn.004cf6d0
mov esi, dword [esp + 0xd0]
add esp, 8
mov dword [esp + 0x164], 2
mov dword [esp + 0x15c], esi
test esi, esi
je 0x4d00d5
inc dword [esi]
mov byte [esp + 0x1f0], 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0
lea ecx, [esp + 0x15c]
call fcn.004dd7c0
add ebx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test esi, esi
je 0x4d0128
mov eax, dword [esi]
test eax, eax
jne 0x4d0158
mov ecx, esi
call fcn.004df580
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xdc]
inc edi
mov dword [esp + 0xdc], edi
cmp edi, dword [esp + 0xe0]
jge 0x4d1239
mov ecx, dword [esp + 0xd8]
jmp 0x4d0060
dec eax
mov dword [esi], eax
jmp 0x4d0128
test edi, edi
jns 0x4d0165
mov edi, edx
sub edi, ebx
mov dword [esp + 0xd0], 0
mov dword [esp + 0x1f0], 2
lea eax, [esp + 0xd0]
push eax
push edi
mov ecx, ebx
call fcn.004cf6d0
mov esi, dword [esp + 0xd8]
add esp, 8
mov dword [esp + 0x17c], 2
mov dword [esp + 0x174], esi
test esi, esi
je 0x4d01ad
inc dword [esi]
mov byte [esp + 0x1f0], 3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x174]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 2
lea ecx, [esp + 0x174]
jmp 0x4d0101
test edi, edi
jns 0x4d01e9
mov edi, edx
sub edi, ebx
shl edi, 3
mov dword [esp + 0xc0], 0
mov dword [esp + 0x1f0], 4
push 0
lea eax, [esp + 0xc4]
push eax
push edi
mov ecx, ebx
call fcn.004cf910
mov esi, dword [esp + 0xcc]
add esp, 0xc
mov dword [esp + 0x1ac], 2
mov dword [esp + 0x1a4], esi
test esi, esi
je 0x4d0233
inc dword [esi]
mov byte [esp + 0x1f0], 5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1a4]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 4
lea ecx, [esp + 0x1a4]
call fcn.004dd7c0
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add ebx, eax
jmp 0x4d0108
test edi, edi
jns 0x4d0282
mov edi, edx
sub edi, ebx
shl edi, 3
mov dword [esp + 0xd4], 0
mov dword [esp + 0x1f0], 6
push 1
lea eax, [esp + 0xd8]
push eax
push edi
mov ecx, ebx
call fcn.004cf910
mov esi, dword [esp + 0xe0]
add esp, 0xc
mov dword [esp + 0x194], 2
mov dword [esp + 0x18c], esi
test esi, esi
je 0x4d02cc
inc dword [esi]
mov byte [esp + 0x1f0], 7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18c]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 6
lea ecx, [esp + 0x18c]
jmp 0x4d025f
test edi, edi
jns 0x4d0305
mov edi, edx
sub edi, ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x1f0], 8
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x98]
call fcn.004d2e40
mov eax, dword [esp + 0x98]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x94]
je 0x4d03c1
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
movsx eax, byte [esi]
cdq
mov dword [esp + 0xec], 4
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], edx
mov byte [esp + 0x1f0], 9
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0x24]
mov ecx, ebx
call fcn.0047d1a0
mov byte [esp + 0x1f0], 8
lea ecx, [esp + 0xe4]
call fcn.004dd7c0
inc esi
cmp esi, dword [esp + 0x94]
jne 0x4d0360
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x90]
add ebx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0411
mov edi, edx
sub edi, ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x1f0], 0xa
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x80]
call fcn.004d2f10
mov eax, dword [esp + 0x80]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x7c]
je 0x4d04bb
mov ebx, dword [esp + 0x14]
lea ecx, [ecx]
movzx eax, byte [esi]
cdq
mov dword [esp + 0x104], 4
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], edx
mov byte [esp + 0x1f0], 0xb
lea eax, [esp + 0xfc]
push eax
push dword [esp + 0x24]
mov ecx, ebx
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0xa
lea ecx, [esp + 0xfc]
call fcn.004dd7c0
inc esi
cmp esi, dword [esp + 0x7c]
jne 0x4d0460
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
add ebx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0513
mov eax, edx
sub eax, ebx
cdq
and edx, 7
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x1f0], 0xc
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x50]
call fcn.004d2fe0
mov eax, dword [esp + 0x50]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x4c]
je 0x4d05c9
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
movsd xmm0, qword [esi]
movsd qword [esp + 0x24], xmm0
mov dword [esp + 0x1b8], 5
call fcn.00496b30
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 0x1b0], xmm0
mov byte [esp + 0x1f0], 0xd
lea eax, [esp + 0x1b0]
push eax
push dword [esp + 0x24]
mov ecx, ebx
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0xc
lea ecx, [esp + 0x1b0]
call fcn.004dd7c0
add esi, 8
cmp esi, dword [esp + 0x4c]
jne 0x4d0560
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
lea ebx, [ebx + edi*8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
jmp 0x4d0128
test edi, edi
jns 0x4d061f
mov eax, edx
sub eax, ebx
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x1f0], 0xe
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0xb0]
call fcn.004d3170
mov eax, dword [esp + 0xb0]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0xac]
je 0x4d06ea
mov ebx, dword [esp + 0x14]
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x170], 5
movsd qword [esp + 0x24], xmm0
call fcn.00496b30
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 0x168], xmm0
mov byte [esp + 0x1f0], 0xf
lea eax, [esp + 0x168]
push eax
push dword [esp + 0x24]
mov ecx, ebx
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0xe
lea ecx, [esp + 0x168]
call fcn.004dd7c0
add esi, 4
cmp esi, dword [esp + 0xac]
jne 0x4d0678
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa8]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
jmp 0x4d0128
test edi, edi
jns 0x4d073d
mov edi, edx
sub edi, ebx
add edi, edi
mov dword [esp + 0xcc], 0
mov dword [esp + 0x1f0], 0x10
push 0
lea eax, [esp + 0xd0]
push eax
push edi
mov ecx, ebx
call fcn.004cfcb0
mov esi, dword [esp + 0xd8]
add esp, 0xc
mov dword [esp + 0x188], 2
mov dword [esp + 0x180], esi
test esi, esi
je 0x4d0787
inc dword [esi]
mov byte [esp + 0x1f0], 0x11
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x180]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x10
lea ecx, [esp + 0x180]
call fcn.004dd7c0
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
jmp 0x4d0108
test edi, edi
jns 0x4d07d1
mov edi, edx
sub edi, ebx
add edi, edi
mov dword [esp + 0xc4], 0
mov dword [esp + 0x1f0], 0x12
push 1
lea eax, [esp + 0xc8]
push eax
push edi
mov ecx, ebx
call fcn.004cfcb0
mov esi, dword [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x1a0], 2
mov dword [esp + 0x198], esi
test esi, esi
je 0x4d081b
inc dword [esi]
mov byte [esp + 0x1f0], 0x13
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x198]
push eax
push dword [esp + 0x24]
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x12
lea ecx, [esp + 0x198]
call fcn.004dd7c0
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
jmp 0x4d0108
test edi, edi
jns 0x4d0875
mov eax, edx
sub eax, ebx
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x1f0], 0x14
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x5c]
call fcn.004d32f0
mov eax, dword [esp + 0x5c]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x58]
je 0x4d091c
mov edi, dword [esp + 0x14]
jmp 0x4d08c0
mov eax, dword [esi]
cdq
mov dword [esp + 0x134], 4
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], edx
mov byte [esp + 0x1f0], 0x15
lea eax, [esp + 0x12c]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x14
lea ecx, [esp + 0x12c]
call fcn.004dd7c0
add esi, 4
cmp esi, dword [esp + 0x58]
jne 0x4d08c0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0976
mov eax, edx
sub eax, ebx
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x1f0], 0x16
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x74]
call fcn.004d3470
mov eax, dword [esp + 0x74]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x70]
je 0x4d0a1f
mov edi, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [esi]
mov dword [esp + 0x11c], 4
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], 0
mov byte [esp + 0x1f0], 0x17
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x16
lea ecx, [esp + 0x114]
call fcn.004dd7c0
add esi, 4
cmp esi, dword [esp + 0x70]
jne 0x4d09c0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x6c]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0a76
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
sar edi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x1f0], 0x18
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x8c]
call fcn.004d35f0
mov eax, dword [esp + 0x8c]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x88]
je 0x4d0b33
mov edi, dword [esp + 0x14]
nop
movzx eax, word [esi]
cdq
mov dword [esp + 0x14c], 4
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], edx
mov byte [esp + 0x1f0], 0x19
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x18
lea ecx, [esp + 0x144]
call fcn.004dd7c0
add esi, 2
cmp esi, dword [esp + 0x88]
jne 0x4d0ad0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
lea ebx, [ebx + edi*2]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0b96
mov eax, edx
sub eax, ebx
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x1f0], 0x1a
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0xa4]
call fcn.004d3790
mov eax, dword [esp + 0xa4]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0xa0]
je 0x4d0c55
mov edi, dword [esp + 0x14]
nop
mov eax, dword [esi]
mov dword [esp + 0xf8], 4
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], 0
mov byte [esp + 0x1f0], 0x1b
lea eax, [esp + 0xf0]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x1a
lea ecx, [esp + 0xf0]
call fcn.004dd7c0
add esi, 4
cmp esi, dword [esp + 0xa0]
jne 0x4d0bf0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0cb5
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
sar edi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1f0], 0x1c
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x38]
call fcn.004d3910
mov eax, dword [esp + 0x38]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x34]
je 0x4d0d5d
mov edi, dword [esp + 0x14]
lea esp, [esp]
movsx eax, word [esi]
cdq
mov dword [esp + 0x110], 4
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], edx
mov byte [esp + 0x1f0], 0x1d
lea eax, [esp + 0x108]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x1c
lea ecx, [esp + 0x108]
call fcn.004dd7c0
add esi, 2
cmp esi, dword [esp + 0x34]
jne 0x4d0d00
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
lea ebx, [ebx + edi*2]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0db4
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
sar edi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0x1f0], 0x1e
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0xbc]
call fcn.004d3910
mov eax, dword [esp + 0xbc]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0xb8]
je 0x4d0e73
mov edi, dword [esp + 0x14]
lea ecx, [ecx]
movzx eax, word [esi]
cdq
mov dword [esp + 0x128], 4
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], edx
mov byte [esp + 0x1f0], 0x1f
lea eax, [esp + 0x120]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x1e
lea ecx, [esp + 0x120]
call fcn.004dd7c0
add esi, 2
cmp esi, dword [esp + 0xb8]
jne 0x4d0e10
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xb4]
lea ebx, [ebx + edi*2]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0ed3
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
sar edi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x1f0], 0x20
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x68]
call fcn.004d3910
mov eax, dword [esp + 0x68]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x64]
je 0x4d0f7d
mov edi, dword [esp + 0x14]
lea ebx, [ebx]
movzx eax, word [esi]
cdq
mov dword [esp + 0x140], 4
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edx
mov byte [esp + 0x1f0], 0x21
lea eax, [esp + 0x138]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x20
lea ecx, [esp + 0x138]
call fcn.004dd7c0
add esi, 2
cmp esi, dword [esp + 0x64]
jne 0x4d0f20
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
lea ebx, [ebx + edi*2]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
jmp 0x4d0128
test edi, edi
jns 0x4d0fd7
mov eax, edx
sub eax, ebx
cdq
and edx, 3
lea edi, [edx + eax]
mov edx, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1f0], 0x22
push edi
push edx
mov edx, ebx
lea ecx, [esp + 0x44]
call fcn.004d3470
mov eax, dword [esp + 0x44]
add esp, 8
mov esi, eax
cmp eax, dword [esp + 0x40]
je 0x4d107f
mov edi, dword [esp + 0x14]
mov edi, edi
mov eax, dword [esi]
mov dword [esp + 0x158], 4
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], 0
mov byte [esp + 0x1f0], 0x23
lea eax, [esp + 0x150]
push eax
push dword [esp + 0x24]
mov ecx, edi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x22
lea ecx, [esp + 0x150]
call fcn.004dd7c0
add esi, 4
cmp esi, dword [esp + 0x40]
jne 0x4d1020
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
lea ebx, [ebx + edi*4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
test eax, eax
je 0x4d0128
push eax
call fcn.00633f98
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
jmp 0x4d0128
test edi, edi
jns 0x4d10c9
mov edi, edx
sub edi, ebx
test edi, edi
jle case.default.0x4d007e
add ebx, edi
mov dword [esp + 0x1c], ebx
jmp case.default.0x4d007e
mov ecx, dword [esp + 0x2c]
test edi, edi
jns 0x4d10e6
mov edi, ebx
sub edi, ecx
xor eax, eax
test edi, edi
jle case.default.0x4d007e
cmp ecx, ebx
je case.default.0x4d007e
dec ebx
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, edi
jl 0x4d10f0
jmp case.default.0x4d007e
test edi, edi
jns 0x4d110f
mov edi, edx
sub edi, ebx
mov ebx, dword [esp + 0x2c]
add ebx, edi
mov dword [esp + 0x1c], ebx
jmp case.default.0x4d007e
xor eax, eax
mov dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], 0
mov dword [esp + 0x1dc], 7
mov dword [esp + 0x1d8], 0
mov word [esp + 0x1c8], ax
mov dword [esp + 0x1f0], 0x24
lea eax, [esp + 0x1c8]
push eax
sub edx, ebx
mov ecx, ebx
call fcn.004cea10
add esp, 4
cmp dword [esp + 0x1dc], 8
lea eax, [esp + 0x1c8]
cmovae eax, dword [esp + 0x1c8]
push eax
lea ecx, [esp + 0x1c0]
call fcn.004026d0
mov byte [esp + 0x1f0], 0x25
push eax
push dword [esp + 0x24]
mov ecx, esi
call fcn.0047d1a0
mov byte [esp + 0x1f0], 0x24
lea ecx, [esp + 0x1bc]
call fcn.004dd7c0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1f0], 0xffffffff
lea ecx, [esp + 0x1c8]
call fcn.0040aca0
mov edx, ebx
jmp case.default.0x4d007e
mov eax, dword [0x789dfc]
mov ecx, dword [0x789df8]
test eax, eax
cmovne ecx, eax
call fcn.00452890
mov eax, dword [0x789cf8]
mov ecx, dword [0x789cf4]
test eax, eax
cmovne ecx, eax
call fcn.00452890
mov eax, dword [0x789c08]
mov ecx, dword [0x789c04]
test eax, eax
cmovne ecx, eax
call fcn.00452890
mov eax, dword [0x789d68]
mov ecx, dword [0x789d64]
test eax, eax
cmovne ecx, eax
call fcn.00452890
mov eax, esi
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00633732
mov esp, ebp
pop ebp
ret