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

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xe0]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
movsx eax, word [edi + 0x54]
mov ebx, dword [edi + eax*4 + 0x54]
mov ecx, dword [edi + eax*4 + 0x58]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebx
mov eax, dword [ebx + 0x44]
mov ebp, dword [ecx + 0x3c]
push eax
mov dword [esp + 0x18], ebp
call fcn.004b67f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c5d37
mov esi, dword [esp + 0x50]
mov al, byte [esi + 3]
test al, al
je 0x4c52f1
mov al, byte [esi + 2]
test al, al
je 0x4c52f1
mov cl, byte [esi + 1]
mov eax, 1
cmp cl, al
jne 0x4c52f1
mov cx, word [esi + 0x18]
cmp cx, word [esi + 0x10]
jne 0x4c52f1
cmp dword [ebx + 0x48], eax
je 0x4c52f1
mov eax, dword [ebx + 0x40]
xor edx, edx
mov dl, byte [ebx + 5]
lea ecx, [edx + eax + 8]
push ecx
call fcn.004b5040
mov ecx, dword [esi + 0x48]
add esp, 4
cmp eax, ecx
jne 0x4c52f1
push edi
call fcn.004c60f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x44]
push eax
call fcn.004b67f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c5d37
movsx ecx, word [edi + 0x54]
mov ax, word [edi + ecx*2 + 0xa6]
xor ecx, ecx
mov cx, word [ebx + 0x10]
dec eax
mov dword [esp + 0x34], eax
lea edx, [eax + 3]
cmp edx, ecx
jle 0x4c5330
lea eax, [ecx - 2]
mov dword [esp + 0x34], eax
test eax, eax
jge 0x4c533a
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, eax
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
xor edi, edi
jmp 0x4c5352
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
mov ax, word [ebx + 0x10]
cmp ecx, eax
jge 0x4c5388
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebx + 0x40]
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0xc]
add ecx, ebp
add ecx, eax
mov dl, byte [ecx + 1]
mov dh, byte [ecx]
xor ecx, ecx
mov cx, word [ebx + 0x12]
and edx, ecx
add eax, edx
mov dword [esp + edi + 0x88], eax
push eax
jmp 0x4c539b
jne 0x4c541c
mov eax, dword [ebx + 0x40]
xor edx, edx
mov dl, byte [ebx + 5]
lea ecx, [edx + eax + 8]
push ecx
call fcn.004b5040
add esp, 4
lea ebp, [esp + edi + 0x70]
mov dword [esp + edi + 0x9c], eax
mov edx, eax
mov eax, dword [esp + 0x14]
push ebp
push edx
push eax
call fcn.004ba2b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4c5d37
mov dword [esp + edi + 0x7c], eax
mov eax, dword [esp + 0x24]
inc eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov ebp, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax + 1]
xor ecx, ecx
mov cx, word [eax + 0x10]
add edx, ebp
add esi, 2
add edi, 4
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x18]
inc edx
cmp edi, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], edx
jl 0x4c534a
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
jmp 0x4c5420
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [ebp + 0x16]
lea esi, [ecx + 3]
mov cl, byte [ebp + 0x13]
and esi, 0xfffffffc
add edx, esi
neg cl
sbb ecx, ecx
lea eax, [esi + edx*2 + 0x78]
and ecx, esi
lea eax, [ecx + eax*2]
push eax
call fcn.004c5db0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4c545d
mov esi, 7
jmp 0x4c5d37
lea eax, [eax + esi*4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x44], eax
lea edx, [eax + esi*2]
xor eax, eax
mov ax, word [ebp + 0x16]
mov dword [esp + 0x5c], edx
mov edx, 2
mov esi, dword [ecx - 4]
add ecx, 4
dec edx
lea esi, [esi + eax + 0x50]
mov dword [ecx - 4], esi
jne 0x4c547a
mov ecx, dword [esp + 0x64]
mov dl, byte [ebp + 0x13]
test dl, dl
lea ecx, [eax + ecx + 0x50]
mov dword [esp + 0x38], ecx
je 0x4c54a4
lea edx, [eax + ecx]
mov dword [esp + 0x4c], edx
push eax
call fcn.004b5dc0
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
jne 0x4c54bf
mov esi, 7
jmp 0x4c5d37
xor eax, eax
test ebx, ebx
jle 0x4c5500
mov edx, dword [esp + eax*4 + 0x5c]
mov esi, dword [esp + eax*4 + 0x70]
mov ecx, 0x13
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x4c]
mov dword [esp + eax*4 + 0x7c], edx
mov dword [edx + 0x40], edi
mov edx, dword [esp + eax*4 + 0x70]
xor ecx, ecx
mov cx, word [ebp + 0x16]
mov esi, dword [edx + 0x40]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jl 0x4c54c5
mov esi, dword [esp + 0x50]
xor eax, eax
xor ecx, ecx
xor edi, edi
mov al, byte [esi + 4]
mov cl, byte [esi + 3]
mov dword [esp + 0x48], eax
xor eax, eax
shl ecx, 2
test ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
jle 0x4c56df
mov ebp, dword [esp + eax*4 + 0x7c]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x10], 0
mov bx, word [ebp + 0x10]
mov cl, byte [ebp + 1]
add ebx, ecx
test ebx, ebx
mov dword [esp + 0x1c], ebx
jle 0x4c55e6
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
lea ecx, [eax + edi*2]
lea esi, [edx + edi*4]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.004c5f60
push eax
push ebp
mov dword [esi], eax
call fcn.004c43a0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0x10
mov word [ecx], ax
mov al, byte [edx + 0x13]
test al, al
je 0x4c55c2
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x20]
mov byte [ecx + edi], al
xor ecx, ecx
mov cl, byte [ebp + 1]
xor eax, eax
test ecx, ecx
jle 0x4c55c2
mov ebx, dword [esi]
lea edx, [ebp + 0x14]
cmp dword [edx], ebx
je 0x4c55b6
inc eax
add edx, 8
cmp eax, ecx
jl 0x4c55a8
jmp 0x4c55be
mov edx, dword [esp + 0x4c]
mov byte [edx + edi], 0xff
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc edi
add ecx, 2
add esi, 4
inc eax
cmp eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jl 0x4c5564
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x24]
dec ecx
cmp eax, ecx
jge 0x4c56ca
mov esi, dword [esp + eax*4 + 0x88]
mov ebx, dword [esp + 0x40]
push esi
push ebx
call fcn.004c43a0
mov ecx, dword [esp + 0x50]
add esp, 8
test ecx, ecx
je 0x4c5629
mov edx, dword [esp + 0x34]
and eax, 0xffff
push eax
push edx
push ebx
call fcn.004c4a70
add esp, 0xc
jmp 0x4c56c6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov word [ecx + edi*2], ax
mov ecx, dword [esp + 0x28]
and eax, 0xffff
add edx, ecx
add ecx, eax
mov edi, edx
mov dword [esp + 0x28], ecx
mov ecx, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edx, esi
mov dword [ebx + edi*4], edx
mov dl, byte [ecx + 0x13]
test dl, dl
je 0x4c567c
mov edx, dword [esp + 0x4c]
mov byte [edx + edi], 0xff
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
call fcn.004c4a70
mov eax, dword [esp + 0x50]
add esp, 0xc
sub word [eax + edi*2], si
mov dl, byte [ebp + 3]
mov cx, word [eax + edi*2]
test dl, dl
jne 0x4c56b5
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebx + edi*4]
xor edx, edx
mov dl, byte [ebp + 5]
mov edx, dword [edx + eax + 8]
mov dword [ecx], edx
jmp 0x4c56c1
cmp cx, 4
jae 0x4c56c1
mov word [eax + edi*2], 4
inc edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c552d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
xor eax, eax
xor ebp, ebp
mov ax, word [edx + 0x18]
xor edx, edx
lea eax, [eax + ecx - 0xc]
mov dword [esp + 0x38], eax
xor eax, eax
test edi, edi
jle 0x4c5732
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
xor ecx, ecx
mov cx, word [esi]
lea eax, [eax + ecx + 2]
cmp eax, dword [esp + 0x38]
jle 0x4c572a
sub eax, ecx
mov dword [esp + ebp*4 + 0x88], edx
test ebx, ebx
mov dword [esp + ebp*4 + 0x5c], eax
je 0x4c5727
dec edx
sub esi, 2
xor eax, eax
inc ebp
inc edx
add esi, 2
cmp edx, edi
jl 0x4c5703
mov dword [esp + ebp*4 + 0x5c], eax
mov dword [esp + ebp*4 + 0x88], edi
inc ebp
mov dword [esp + 0x38], ebp
lea eax, [ebp - 1]
test eax, eax
jle 0x4c57e4
mov ebx, dword [esp + 0x44]
lea edi, [eax*4 - 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
mov edx, dword [esp + edi + 0x60]
mov esi, dword [esp + edi + 0x5c]
mov eax, dword [esp + edi + 0x88]
mov ebp, dword [esp + 0x48]
dec eax
mov ecx, eax
sub ecx, ebp
inc ecx
test edx, edx
je 0x4c579c
xor edi, edi
mov ebp, esi
mov di, word [ebx + eax*2]
sub ebp, edi
xor edi, edi
mov di, word [ebx + ecx*2]
sub ebp, 2
lea edi, [edi + edx + 2]
cmp edi, ebp
mov edi, dword [esp + 0x10]
jg 0x4c57c6
xor ebp, ebp
mov bp, word [ebx + ecx*2]
xor ecx, ecx
mov cx, word [ebx + eax*2]
mov eax, 0xfffffffe
sub eax, ecx
lea edx, [edx + ebp + 2]
add esi, eax
mov eax, dword [esp + edi + 0x88]
dec eax
mov dword [esp + edi + 0x88], eax
jmp 0x4c5768
mov eax, dword [esp + 0x28]
mov dword [esp + edi + 0x60], edx
mov dword [esp + edi + 0x5c], esi
sub edi, 4
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
jne 0x4c5760
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
xor eax, eax
xor edi, edi
mov ecx, dword [edx + 0x40]
test ebp, ebp
mov al, byte [ecx]
mov dword [esp + 0x38], eax
jle 0x4c588e
cmp edi, dword [esp + 0x24]
jge 0x4c5846
mov eax, dword [esp + edi*4 + 0x70]
mov edx, dword [esp + edi*4 + 0x9c]
mov dword [esp + edi*4 + 0x5c], eax
mov dword [esp + 0x28], eax
mov dword [esp + edi*4 + 0xa8], edx
mov dword [esp + edi*4 + 0x70], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.004b67f0
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, eax
inc ecx
test esi, esi
mov dword [esp + 0x2c], ecx
jne 0x4c5d37
jmp 0x4c5885
mov ecx, dword [esp + edi*4 + 0xa4]
lea eax, [esp + edi*4 + 0xa8]
push 0
push ecx
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004b8a80
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + edi*4 + 0x5c], ecx
mov dword [esp + 0x2c], eax
inc edi
cmp edi, ebp
jl 0x4c57fd
cmp edi, dword [esp + 0x24]
jge 0x4c58c6
lea ebx, [esp + edi*4 + 0x70]
mov edx, dword [ebx]
push edx
call fcn.004c5fe0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c5d37
mov eax, dword [ebx]
push eax
call fcn.004b7540
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [ebx], esi
inc edi
add ebx, 4
cmp edi, eax
jl 0x4c5898
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x4c5962
mov edi, dword [esp + eax*4 + 0xa8]
lea ecx, [esp + eax*4 + 0xa8]
lea ebx, [eax + 1]
mov dword [esp + 0x28], ecx
cmp ebx, ebp
mov dword [esp + 0x1c], edi
mov edx, eax
mov dword [esp + 0x20], ebx
mov ecx, ebx
jge 0x4c5955
mov esi, dword [esp + 0x28]
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, edi
jae 0x4c5911
mov edx, ecx
mov edi, esi
mov esi, dword [esp + 0x10]
inc ecx
add esi, 4
cmp ecx, ebp
mov dword [esp + 0x10], esi
jl 0x4c5903
cmp edx, eax
jle 0x4c5955
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + edx*4 + 0xa8]
mov esi, dword [esp + eax*4 + 0x5c]
lea ecx, [esp + edx*4 + 0xa8]
lea edx, [esp + edx*4 + 0x5c]
lea eax, [esp + eax*4 + 0x5c]
mov dword [ebx], edi
mov ebx, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [edx], esi
mov eax, ebx
lea ecx, [ebp - 1]
cmp eax, ecx
jl 0x4c58d3
mov eax, dword [esp + 0x2c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebp
jle 0x4c5bc6
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push ecx
mov edi, dword [esp + ebx*4 + 0x60]
push edi
call fcn.004b76d0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + ebx*4 + 0x90]
lea esi, [edx + ebp*4]
lea edx, [ecx + ebp*2]
mov dword [esp + 0x24], eax
push edx
sub eax, ebp
push esi
push eax
push edi
call fcn.004c6000
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov cl, byte [eax + 0x13]
test cl, cl
je 0x4c5a4e
mov eax, dword [esp + 0x1c]
mov ebx, ebp
cmp ebp, eax
jge 0x4c5a4e
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x4c]
mov al, byte [ebx + ecx]
cmp al, 0xff
je 0x4c59ed
mov ecx, dword [edi + 0x48]
and eax, 0xff
mov edx, dword [esp + eax*4 + 0x7c]
mov eax, dword [edx + 0x48]
cmp eax, ecx
je 0x4c5a3a
mov ecx, ebx
sub ecx, ebp
push ecx
push edi
call fcn.004c5fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4c5a3a
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x48]
push edx
push 5
mov ecx, dword [eax]
push ecx
call fcn.004b5040
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push edx
call fcn.004b8050
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c5d37
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x10], ecx
jl 0x4c59cf
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x4c5b81
cmp ebp, dword [esp + 0x18]
jge 0x4c5b81
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov ebx, dword [ecx + ebp*4]
mov cx, word [edx + ebp*2]
mov edx, dword [esp + 0x58]
mov eax, ecx
and eax, 0xffff
add eax, esi
mov esi, dword [esp + 0x54]
add edx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dl, byte [edi + 3]
test dl, dl
jne 0x4c5c5a
mov eax, dword [edi + 0x40]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov al, byte [edx + 0x13]
test al, al
je 0x4c5afe
mov eax, dword [esp + 0x4c]
mov al, byte [eax + ebp]
cmp al, 0xff
je 0x4c5ad7
and eax, 0xff
mov ecx, dword [esp + eax*4 + 0x7c]
mov eax, dword [edi + 0x48]
mov edx, dword [ecx + 0x48]
cmp edx, eax
je 0x4c5afe
mov eax, dword [edi + 0x48]
push eax
push 5
push ebx
call fcn.004b5040
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
call fcn.004b8050
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
add ecx, eax
push 4
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x4c]
push ebx
push edx
push eax
call fcn.004c4cd0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c5d37
mov ecx, dword [edi + 0x48]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
push ecx
push ebx
push esi
call fcn.004c5f60
add esp, 8
push eax
call fcn.004b6520
mov edx, dword [esp + 0x1c]
add esp, 8
mov al, byte [edx + 0x13]
test al, al
je 0x4c5b77
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4c5b77
push ebx
push esi
call fcn.004c5fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x34]
inc ebp
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x13]
test cl, cl
je 0x4c5bb1
mov ecx, dword [esp + 0x40]
mov eax, dword [edi + 0x48]
mov edx, dword [ecx + 0x48]
mov ecx, dword [esp + 0x14]
push edx
push 5
push eax
push ecx
call fcn.004b8050
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c5974
test byte [esp + 0x38], 8
jne 0x4c5c1d
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + edx*4 + 0x78]
mov ecx, dword [esp + ecx*4 + 0x58]
mov eax, dword [eax + 0x40]
mov edx, dword [ecx + 0x40]
add eax, 8
mov esi, dword [eax]
mov dword [edx + 8], esi
mov edx, dword [esp + 0x14]
mov bl, byte [edx + 0x13]
test bl, bl
je 0x4c5c1d
mov ecx, dword [ecx + 0x48]
push ecx
push 5
push eax
call fcn.004b5040
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push edx
call fcn.004b8050
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c5d37
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov cl, byte [eax + 1]
mov edx, ecx
xor ecx, ecx
mov cx, word [eax + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, edx
mov edx, dword [esp + 0x2c]
jne 0x4c5ce4
mov ecx, dword [esp + edx*4 + 0xa4]
xor edx, edx
mov dl, byte [eax + 5]
mov eax, dword [eax + 0x40]
push ecx
lea ecx, [edx + eax + 8]
push ecx
jmp 0x4c5cf7
mov edx, dword [esp + 0x48]
test edx, edx
je 0x4c5cbb
mov eax, dword [esp + 0x30]
dec ebp
lea edx, [esp + 0xbc]
mov ecx, dword [eax + ebp*4]
push edx
push ecx
push edi
call fcn.004b8270
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd0]
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x50]
push 0
push 0
push 0
push eax
push ecx
push 0
push ebx
push edx
call fcn.004c47a0
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4c5d37
mov dword [esp + 0x1c], eax
jmp 0x4c5afe
sub ebx, 4
cmp cx, 4
jne 0x4c5b02
mov eax, dword [esp + 0x40]
push ebx
push eax
call fcn.004c43a0
add esp, 8
and eax, 0xffff
mov dword [esp + 0x10], eax
jmp 0x4c5b02
mov edx, dword [esp + edx*4 + 0xa4]
push edx
push ecx
push eax
call fcn.004c5f60
add esp, 8
push eax
call fcn.004b6520
mov eax, dword [esp + 0x38]
add esp, 8
push eax
call fcn.004c5e90
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], 0
push eax
mov byte [eax + 1], 0
call fcn.004b7540
mov eax, dword [esp + 0xe8]
push 0
push eax
dec word [eax + 0x54]
call fcn.004c5190
add esp, 0x10
mov esi, eax
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004b5df0
mov edx, dword [esp + 0x34]
push edx
call fcn.004c5e90
mov ebx, dword [esp + 0x2c]
add esp, 8
test ebx, ebx
jle 0x4c5d6b
lea edi, [esp + 0x70]
mov eax, dword [edi]
push eax
call fcn.004b7540
add esp, 4
add edi, 4
dec ebx
jne 0x4c5d5a
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x4c5d88
lea edi, [esp + 0x5c]
mov ecx, dword [edi]
push ecx
call fcn.004b7540
add esp, 4
add edi, 4
dec ebx
jne 0x4c5d77
mov eax, dword [esp + 0xe0]
pop edi
movsx edx, word [eax + 0x54]
mov eax, dword [eax + edx*4 + 0x58]
mov byte [eax + 1], 0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret