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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ecx]
pcmpeqd xmm0, xmm0
mov edi, 7
mov esi, dword [eax]
mov eax, dword [esi]
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
cmp byte [eax + 0x51], 0
jne 0x4b432f
mov edi, dword [ecx + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x54], esi
mov esi, 0x18
mov dword [esp + 0x34], ecx
mov eax, dword [edi + 0x24]
movzx edx, word [ebx + 0x37]
movzx ebx, word [edi + 0x18]
mov dword [esp + 0x4c], eax
test al, 0x20
mov eax, 0x1bf
mov word [esp + 0x1c], bx
cmove esi, eax
mov eax, esi
and eax, 0xffffff83
test dl, 4
movzx edx, word [edi + 0x1a]
cmove eax, esi
mov esi, dword [ecx + 4]
mov word [esp + 0x3e], dx
movzx edx, word [edi + 0x1c]
mov word [esp + 0x3c], dx
movzx edx, word [edi + 0x2a]
mov word [esp + 0x52], dx
movzx edx, word [edi + 0x28]
mov word [esp + 0x1e], dx
mov edx, dword [edi]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x5c], edx
movzx edx, word [edi + 0x16]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], 0
mov byte [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
movzx eax, bx
mov esi, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x9c], edx
mov edx, dword [ebp + 8]
mov word [esp + 0x91], 0x101
test edx, edx
je 0x4b37fa
mov ebx, edx
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x14]
movsx eax, word [eax + edx*2]
cmp eax, 0xfffffffe
jne 0x4b37c2
mov eax, dword [ebx + 0x28]
mov ecx, edx
shl ecx, 4
mov eax, dword [eax + ecx + 4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x88], eax
mov word [esp + 0xc8], 0xfffe
call fcn.004b0a70
jmp 0x4b380e
mov edx, dword [ebx + 0xc]
mov si, 0xffff
cmp ax, word [edx + 0x28]
je 0x4b37fa
test ax, ax
js 0x4b37f8
mov ecx, dword [edx + 4]
lea edx, [eax + eax*4]
mov esi, ebx
mov cl, byte [ecx + edx*4 + 0xd]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x90], cl
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx + edx*4]
mov dword [esp + 0x88], ecx
mov esi, eax
lea ecx, [esp + 0x80]
mov word [esp + 0xc8], si
call fcn.004b0720
mov esi, eax
mov eax, dword [ebp + 8]
mov word [edi + 0x12], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], edi
mov eax, dword [eax + 8]
movzx eax, word [eax]
cmp ax, 0xb
mov word [esp + 0x32], ax
jl 0x4b38e4
movzx ecx, word [esp + 0x32]
mov ax, 0x28
cmp ecx, 0x100
jb 0x4b3889
movzx ecx, word [esp + 0x32]
mov ax, 0x50
mov dword [esp + 0x2c], 0
nop dword [eax]
mov ebx, dword [esp + 0x2c]
mov edi, ecx
mov ecx, ebx
mov edx, ebx
shr ebx, 4
shld ecx, edi, 0x1c
cmp edi, 0x1000
mov dword [esp + 0x2c], ebx
sbb edx, 0
jb 0x4b3885
add eax, 0x28
jmp 0x4b3860
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp ecx, 0x10
mov edx, ebx
sbb edx, 0
jb 0x4b38d2
mov dword [esp + 0x48], esi
mov edi, ebx
mov edx, ebx
mov esi, 0x1f
nop word cs:[eax + eax]
nop
mov ebx, ecx
mov ecx, edx
add eax, 0xa
shr edi, 1
shld ecx, ebx, 0x1f
cmp esi, ebx
mov ebx, 0
sbb ebx, edx
mov edx, edi
jb 0x4b38b0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
and ecx, 7
add ax, word [ecx + ecx + 0x50ef44]
add eax, 0xffffffd5
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x1e]
test esi, esi
mov dword [esp + 0x58], eax
je 0x4b41e7
add eax, 8
lea ecx, [edi + 0x38]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
and eax, 0xfffffff8
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [eax*4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
movsx ecx, ax
lea eax, [eax + 1]
mov dword [esp + 0x6c], eax
lea eax, [ecx + 0x31]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], eax
mov eax, ecx
lea eax, [ecx + 0x1f]
mov dword [esp + 0x68], eax
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, word [esi + 0xc]
cmp ebx, 0x100
jne 0x4b3992
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx*2]
test cx, cx
js 0x4b397f
mov eax, dword [edx + 0xc]
lea ecx, [ecx + ecx*4]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ecx*4 + 0xc]
jmp 0x4b3988
xor eax, eax
cmp cx, 0xffff
sete al
xor edi, edi
test eax, eax
jne 0x4b41b0
mov ecx, dword [esp + 0x10]
xor edi, edi
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
and ecx, dword [esi + 0x24]
and eax, dword [esi + 0x20]
or eax, ecx
jne 0x4b41b0
cmp bx, 0x10
jne 0x4b39c4
movzx eax, word [esi + 0xa]
and eax, 0x100
test ax, ax
jne 0x4b41b0
mov eax, dword [esp + 0x28]
test byte [eax + 0x24], 8
je 0x4b39da
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x4b41b0
mov eax, dword [ebp + 8]
cmp byte [eax + 0x36], 0
je 0x4b39f0
movzx ecx, word [eax + 0x32]
mov al, 2
dec ecx
cmp ecx, dword [esp + 0x14]
je 0x4b39f2
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
or byte [ecx + 0x14], al
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
movzx ecx, word [esp + 0x1c]
movzx edx, word [esp + 0x3e]
mov dword [edi + 0x24], eax
mov word [edi + 0x18], cx
movzx ecx, word [esp + 0x3c]
mov word [edi + 0x1a], dx
mov word [edi + 0x1c], cx
movzx ecx, word [esp + 0x1e]
mov word [edi + 0x28], cx
cmp cx, word [edi + 0x2c]
jae 0x4b3a3b
mov ebx, dword [edi + 0x30]
mov eax, dword [esp + 0x58]
jmp 0x4b3a97
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x7c]
push 0
call fcn.00435490
add esp, 4
test eax, eax
je 0x4b41e7
mov edi, dword [esp + 0x10]
mov ebx, eax
movzx eax, word [edi + 0x2c]
shl eax, 2
push eax
push dword [edi + 0x30]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov edx, dword [edi + 0x30]
cmp edx, dword [esp + 0x74]
je 0x4b3a81
mov ecx, dword [esp + 0x40]
call fcn.004352c0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
mov dword [edi + 0x30], ebx
mov word [edi + 0x2c], ax
movzx ecx, word [edi + 0x28]
movzx eax, cx
inc ecx
mov word [edi + 0x28], cx
mov dword [ebx + eax*4], esi
mov eax, dword [esi + 0x20]
mov edx, dword [edi + 8]
mov ecx, dword [esi + 0x24]
or eax, dword [esp + 0x60]
not edx
or ecx, dword [esp + 0x5c]
and edx, eax
mov eax, dword [edi + 0xc]
mov dword [edi], edx
not eax
and eax, ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
test al, 1
jne 0x4b3b72
mov ebx, dword [ebp + 8]
test al, 0x82
je 0x4b3c04
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
movzx edx, word [eax + ecx*2]
mov eax, dword [edi + 0x24]
mov ecx, eax
or ecx, 1
cmp dx, 0xffff
mov dword [edi + 0x24], ecx
je 0x4b3b52
movzx ebx, word [ebp + 0xc]
mov dword [esp + 0xc], 0
test bx, bx
jne 0x4b3ee1
test dx, dx
js 0x4b3ee1
mov ebx, dword [ebp + 8]
movzx edx, word [ebx + 0x32]
lea edi, [edx - 1]
cmp edi, dword [esp + 0x14]
jne 0x4b3c7f
test byte [ebx + 0x37], 8
mov edi, dword [esp + 0x10]
jne 0x4b3b52
cmp dx, 1
jne 0x4b3f57
cmp word [esp + 0x24], 2
jne 0x4b3f57
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x36], 0
je 0x4b3f57
or eax, 0x1001
mov dword [esp + 0xc], 0
mov dword [edi + 0x24], eax
mov ecx, eax
test cl, 2
jne 0x4b3f85
jmp 0x4b3eea
mov eax, dword [esi]
test byte [eax + 5], 8
jne 0x4b3bb0
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], 0
test eax, eax
je 0x4b3e00
mov ecx, dword [eax]
test ecx, ecx
je 0x4b3e00
cmp ecx, 8
jae 0x4b3c91
cmp ecx, 2
jae 0x4b3d83
xor eax, eax
jmp 0x4b3dfb
movzx ecx, word [edi + 0x28]
mov dword [esp + 0xc], 0x2e
cmp ecx, 2
jb 0x4b3e00
mov edx, dword [esp + 0x10]
mov edi, 2
mov dword [esp + 0xc], 0x2e
cmovbe ecx, edi
dec ecx
mov edx, dword [edx + 0x30]
jmp 0x4b3bea
add edx, 4
dec ecx
je 0x4b3e00
mov edi, dword [edx]
test edi, edi
je 0x4b3be0
cmp dword [edi], eax
mov ebx, dword [esp + 0xc]
mov edi, 0
cmove ebx, edi
mov dword [esp + 0xc], ebx
jmp 0x4b3be0
test eax, 0x100
jne 0x4b3c6c
test al, 0x24
mov eax, dword [edi + 0x24]
je 0x4b3cd1
or eax, 0x22
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x28]
push esi
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004b43a0
add esp, 0xc
mov word [edi + 0x1a], ax
test byte [esi + 0xb], 1
jne 0x4b3d24
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x20], 0
mov eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 0
test cl, 2
jne 0x4b3f85
jmp 0x4b3eea
mov ecx, dword [edi + 0x24]
mov dword [esp + 0xc], 0
or ecx, 8
jmp 0x4b3ede
mov edi, dword [esp + 0x10]
test cl, 2
jne 0x4b3f85
jmp 0x4b3eea
mov edx, ecx
sar edx, 0x1f
cmp ecx, 0x100
jb 0x4b3dae
mov ax, 0x50
nop word cs:[eax + eax]
mov ebx, ecx
mov ecx, edx
mov edi, edx
shr edx, 4
shld ecx, ebx, 0x1c
cmp ebx, 0x1000
sbb edi, 0
jb 0x4b3db2
add eax, 0x28
jmp 0x4b3cb0
or eax, 0x12
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x28]
push esi
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004b43a0
add esp, 0xc
mov word [edi + 0x1c], ax
mov ecx, dword [edi + 0x24]
test cl, 0x20
jne 0x4b3f61
test cl, 2
jne 0x4b41cc
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], esi
jmp 0x4b3eea
movzx eax, word [edi + 0x28]
mov ecx, dword [esp + 0x40]
mov edx, edi
inc eax
push eax
call fcn.004b2380
add esp, 4
test eax, eax
jne 0x4b41e7
movzx ecx, word [edi + 0x28]
mov eax, dword [edi + 0x30]
lea ebx, [esi + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebx
lea edx, [ecx + 1]
mov word [edi + 0x28], dx
mov dword [eax + ecx*4], ebx
mov eax, esi
mov ecx, dword [edi + 0x24]
or ecx, 0x10
mov dword [edi + 0x24], ecx
mov word [edi + 0x1c], 1
test cl, 2
jne 0x4b3f85
jmp 0x4b3eea
mov edx, ecx
mov ax, 0x1e
sar edx, 0x1f
nop dword [eax]
mov ebx, 3
lea edi, [ecx + ecx]
cmp ebx, ecx
mov ebx, 0
sbb ebx, edx
jb 0x4b3deb
shld edx, ecx, 1
add eax, 0xfffffff6
mov ecx, edi
jmp 0x4b3d90
mov ax, 0x28
cmp ecx, 0x10
mov edi, edx
sbb edi, 0
jb 0x4b3ded
nop dword [eax]
add eax, 0xa
mov ebx, edx
mov edi, ecx
mov ecx, edx
mov dword [esp + 0xc], eax
mov eax, 0x1f
shld ecx, edi, 0x1f
shr ebx, 1
cmp eax, edi
mov eax, dword [esp + 0xc]
mov edi, 0
sbb edi, edx
mov edx, ebx
jb 0x4b3dc0
jmp 0x4b3ded
mov ecx, edi
and ecx, 7
add ax, word [ecx + ecx + 0x50ef44]
add eax, 0xfffffff6
cwde
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x37], 0
jns 0x4b3ed4
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [eax + 8]
cmp bx, 0xb
movsx ecx, word [eax + ecx*2]
jl 0x4b3ebd
movzx edi, bx
movzx ebx, bx
mov dword [esp + 0x64], ecx
mov cx, 0x28
mov dword [esp + 0x48], esi
cmp ebx, 0x100
jb 0x4b3e6c
xor edx, edx
mov cx, 0x50
nop dword [eax + eax]
mov eax, edi
mov edi, edx
mov ebx, edx
shr edx, 4
shld edi, eax, 0x1c
cmp eax, 0x1000
sbb ebx, 0
jb 0x4b3e6c
add ecx, 0x28
jmp 0x4b3e50
cmp edi, 0x10
mov ebx, edx
sbb ebx, 0
jb 0x4b3ea1
nop word cs:[eax + eax]
mov ebx, edx
mov eax, edi
mov edi, edx
mov esi, 0x1f
add ecx, 0xa
shld edi, eax, 0x1f
shr ebx, 1
cmp esi, eax
mov esi, 0
sbb esi, edx
mov edx, ebx
jb 0x4b3e80
and edi, 7
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x48]
add cx, word [edi + edi + 0x50ef44]
add ecx, 0xffffffd5
mov edx, ecx
mov ecx, dword [esp + 0x64]
movsx eax, dx
xor edi, edi
lea eax, [ecx + eax + 0xa]
mov ecx, dword [esp + 0x38]
add ecx, ebx
cmp eax, ecx
jl 0x4b41b0
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x24]
or ecx, 4
mov dword [edi + 0x24], ecx
test cl, 2
jne 0x4b3f85
mov eax, dword [edi + 0x18]
inc eax
mov word [edi + 0x18], ax
movzx edx, word [esi + 8]
test dx, dx
jle 0x4b3f31
mov edx, dword [ebp + 8]
movzx eax, ax
mov edx, dword [edx + 8]
movzx esi, word [edx + eax*2]
sub si, word [edx + eax*2 - 2]
mov edx, esi
mov esi, dword [esp + 0x20]
add dx, word [edi + 0x16]
test dword [esp + 0x24], 0x100
mov word [edi + 0x16], dx
je 0x4b402c
add edx, 0xa
jmp 0x4b4024
mov ebx, edx
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov edx, dword [edx + 4]
cmp word [edx + esi*2], 0
js 0x4b3efb
mov edx, ebx
mov esi, dword [esp + 0x20]
sub edx, dword [esp + 0xc]
add dx, word [edi + 0x16]
jmp 0x4b4024
or eax, 0x10001
jmp 0x4b3b5f
mov eax, dword [edi + 0x30]
movzx edx, word [edi + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], esi
mov eax, dword [eax + edx*4 - 8]
mov dword [esp + 0x18], eax
test cl, 2
je 0x4b3eea
movzx eax, word [edi + 0x16]
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0x20]
mov edx, eax
je 0x4b3fa6
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 8]
test dx, dx
jle 0x4b3fec
lea edx, [eax - 0x14]
test esi, esi
je 0x4b3ff2
mov ebx, edx
movzx edx, word [esi + 8]
test dx, dx
jle 0x4b3fe1
mov edx, ebx
add edx, 0xffffffec
cmp dword [esp + 0x18], 0
je 0x4b3ffb
mov ebx, edx
test esi, esi
je 0x4b3ffd
mov edx, dword [esp + 0x18]
cmp word [edx + 8], 0
jle 0x4b3ffd
cmp word [esi + 8], 0
lea edx, [ebx - 0x14]
cmovle edx, ebx
mov ebx, edx
jmp 0x4b3ffd
add edx, ebx
cmp dword [esp + 0x18], 0
jne 0x4b3fc1
jmp 0x4b3ffb
add edx, eax
test esi, esi
jne 0x4b3faa
xor esi, esi
cmp dword [esp + 0x18], 0
jne 0x4b3fc1
mov ebx, edx
mov edx, dword [esp + 0x18]
cwde
neg edx
sbb edx, edx
cmp esi, 1
adc edx, 0xffffffff
add edx, eax
cmp bx, 9
mov eax, 0xa
cmovle ebx, eax
movzx eax, bx
cmp edx, eax
cmovle ebx, edx
mov edx, ebx
mov word [edi + 0x16], dx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
movzx esi, dx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov edx, dword [edx + 0x10]
movsx eax, word [eax + 0x30]
movsx edi, word [edx + 0x30]
lea eax, [eax + eax*4]
lea eax, [eax + eax*2]
cdq
idiv edi
lea eax, [esi + eax + 1]
mov esi, dword [esp + 0x2c]
movsx edx, ax
cmp si, dx
jge 0x4b4070
cmp dword [esp + 0x70], edx
mov ecx, dword [esp + 0x34]
jge 0x4b40a1
mov edi, dword [esp + 0x10]
jmp 0x4b40bf
lea eax, [edx + 0x31]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
mov eax, esi
jl 0x4b40bf
lea eax, [edx + 0x1f]
cmp eax, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
jl 0x4b40bf
mov eax, dword [esp + 0x38]
sub eax, edx
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add eax, esi
jmp 0x4b40bf
cmp dword [esp + 0x68], edx
mov edi, dword [esp + 0x10]
jge 0x4b40ae
inc eax
jmp 0x4b40bf
mov eax, edx
sub eax, dword [esp + 0x38]
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add edx, eax
mov eax, edx
test ebx, 0x140
mov word [edi + 0x14], ax
je 0x4b40cf
mov esi, ecx
jmp 0x4b4131
mov ecx, dword [esp + 0x24]
movsx edx, ax
lea esi, [ecx + 0x10]
movsx ecx, si
cmp ax, cx
jge 0x4b40f8
lea eax, [edx + 0x31]
cmp eax, ecx
jl 0x4b4127
lea eax, [edx + 0x1f]
cmp eax, ecx
jge 0x4b4109
mov eax, dword [esp + 0x24]
lea esi, [eax + 0x11]
jmp 0x4b4127
lea esi, [ecx + 0x31]
cmp esi, edx
jl 0x4b4125
lea esi, [ecx + 0x1f]
cmp esi, edx
jge 0x4b411a
inc eax
jmp 0x4b4125
mov eax, ecx
sub eax, edx
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ecx, eax
mov esi, ecx
jmp 0x4b4127
sub edx, ecx
movzx ecx, byte [edx + str._n_n_t_t_b_b_a_a_a]
add eax, ecx
mov esi, eax
mov word [edi + 0x14], si
mov eax, esi
mov esi, dword [esp + 0x34]
movzx ecx, word [ebp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add edx, ecx
add eax, edx
mov dword [esp + 0xc], edx
mov word [edi + 0x14], ax
lea eax, [ebx + edx]
mov edx, edi
mov word [edi + 0x16], ax
movsx eax, word [esp + 0x32]
mov ecx, dword [esi + 4]
push eax
call fcn.004b34c0
add esp, 4
mov ecx, esi
mov edx, edi
call fcn.004b2bd0
mov esi, edi
mov edi, eax
mov eax, dword [esi + 0x24]
test al, 2
cmovne ebx, dword [esp + 0x44]
test al, 0x10
mov word [esi + 0x16], bx
jne 0x4b41a8
movzx eax, word [esi + 0x18]
mov ecx, dword [ebp + 8]
cmp ax, word [ecx + 0x34]
jae 0x4b41a8
movsx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push eax
push dword [ebp + 8]
call fcn.004b3630
add esp, 8
mov eax, dword [esp + 0x44]
mov word [esi + 0x16], ax
lea ecx, [esp + 0x80]
call fcn.004b0720
test eax, eax
je 0x4b41e9
mov esi, eax
test edi, edi
je 0x4b3950
jmp 0x4b41e9
movzx eax, word [edi + 0x16]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0
mov ebx, eax
jmp 0x4b3fac
xor edi, edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
movzx edx, word [esp + 0x3e]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
movzx ecx, word [esp + 0x1c]
mov word [eax + 0x18], cx
mov word [eax + 0x1a], dx
movzx edx, word [esp + 0x3c]
mov word [eax + 0x1c], dx
movzx edx, word [esp + 0x52]
cmp cx, dx
mov ecx, dword [esp + 0x4c]
mov word [eax + 0x2a], dx
movzx edx, word [esp + 0x1e]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x44]
mov word [eax + 0x16], cx
mov word [eax + 0x28], dx
jne 0x4b432f
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
movzx ecx, word [ecx + 0x32]
lea eax, [edx + 1]
cmp eax, ecx
jae 0x4b432f
movzx eax, word [esp + 0x1e]
cmp word [esp + 0x1c], ax
jne 0x4b432f
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x37]
and eax, 0xc0
cmp eax, 0x80
jne 0x4b432f
mov ecx, dword [esp + 0x40]
test byte [ecx + 0x4d], 0x40
jne 0x4b432f
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov eax, dword [eax + 8]
cmp word [eax + edx*2 + 2], 0x2a
jl 0x4b432f
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
inc eax
push eax
call fcn.004b2380
add esp, 4
mov edi, eax
test eax, eax
jne 0x4b432f
mov edi, dword [esp + 0x10]
inc word [edi + 0x18]
inc word [edi + 0x2a]
movzx ecx, word [edi + 0x28]
mov eax, dword [edi + 0x30]
lea edx, [ecx + 1]
mov word [edi + 0x28], dx
mov dword [eax + ecx*4], 0
mov eax, dword [ebp + 8]
or byte [edi + 0x25], 0x80
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
movzx ecx, word [eax + edx*2]
sub cx, word [eax + edx*2 + 2]
movzx eax, word [ebp + 0xc]
mov edx, ebx
sub word [edi + 0x16], cx
lea eax, [eax + ecx + 5]
mov ecx, esi
cwde
push eax
push dword [ebp + 8]
call fcn.004b3630
add esp, 8
mov eax, dword [esp + 0x44]
movzx edx, word [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov word [edi + 0x16], ax
mov word [edi + 0x18], dx
mov word [edi + 0x2a], dx
mov dword [edi + 0x24], ecx
xor edi, edi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret