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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x60]
sub esi, eax
mov eax, dword [edi + 0x144]
sub ebx, ecx
shl eax, 1
mov ecx, esi
mov dword [esp + 0x1c], edi
sub ecx, eax
mov dword [esp + 0x10], ebx
lea eax, [ecx - 1]
cmp eax, 1
jge 0x4b275e
mov eax, 1
push 8
lea ecx, [edi + 0xd8]
push 1
push eax
mov dword [esp + 0x50], ecx
call fcn.00531a70
mov edx, dword [edi + 0x144]
mov eax, ebx
shl edx, 1
sub eax, edx
cmp eax, 1
jge 0x4b2788
mov eax, 1
push 8
lea ecx, [edi + 0x10c]
push eax
push 1
mov dword [esp + 0x54], ecx
call fcn.00531a70
push 8
lea ecx, [edi + 8]
push ebx
push esi
mov dword [esp + 0x4c], ecx
call fcn.00531a70
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
push 0x10
mov ebx, eax
call edi
mov ecx, ebx
mov edi, eax
and ecx, 0xff
and edi, 0xff
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov cl, ah
xor edx, edx
mov ebp, ecx
xor ecx, ecx
mov cl, bh
and ebp, 0xff
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x34], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, ebp
neg ecx
mov dword [esp + 0x50], ecx
mov ecx, edi
shr ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x5c], edx
neg ecx
shl eax, 7
shl ebp, 7
shl edi, 7
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, edx
mov ecx, dword [esp + 0x24]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x18]
mov edi, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x40]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x5c]
mov ebx, eax
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
push ebp
push edi
push edx
call fcn.00531bd0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push edi
push eax
call fcn.00531bd0
mov ecx, dword [esp + 0x48]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.00531bd0
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
add ebp, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
add ebx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
add ebp, ecx
mov ecx, dword [esp + 0x2c]
inc edi
add ebx, edx
add ecx, eax
cmp edi, 0x81
mov dword [esp + 0x5c], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
jl 0x4b2846
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
neg eax
mov dword [esp + 0x44], eax
mov eax, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], 1
neg eax
mov dword [esp + 0x48], eax
mov eax, ecx
neg eax
mov dword [esp + 0x4c], eax
mov eax, edi
shl eax, 7
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, edx
shl eax, 7
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 7
sub eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x28]
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x1c]
cdq
and edx, 0x7f
add ecx, 8
add eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov al, byte [esp + 0x5c]
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
add al, 0x7f
push ebp
push edi
push eax
mov byte [esp + 0x48], al
call fcn.00531bd0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push ebx
push ebp
push edi
push edx
lea ecx, [eax + 0xd8]
call fcn.00531bd0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push edi
push ecx
lea ecx, [edx + 0x10c]
call fcn.00531bd0
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
add ebx, ecx
mov ecx, dword [esp + 0x4c]
add edi, edx
mov edx, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x14]
add ebp, edx
mov edx, dword [esp + 0x40]
inc eax
add ebx, ecx
add edi, edx
cmp eax, 0x81
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jl 0x4b29a1
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x1c]
and eax, 0xff
push eax
push ecx
lea ecx, [edi + 8]
call fcn.00531c70
lea ecx, [edi + 0xd8]
call fcn.00531a50
mov edx, dword [edi + 0xe0]
xor ecx, ecx
test edx, edx
mov ebp, eax
jle 0x4b2add
mov eax, ecx
and eax, 0x80000001
jns 0x4b2ad3
dec eax
or eax, 0xfffffffe
inc eax
neg al
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edx
jl 0x4b2ac5
lea ecx, [edi + 0x10c]
call fcn.00531a50
mov ebp, dword [edi + 0x118]
xor ecx, ecx
test ebp, ebp
jle 0x4b2b0f
mov edx, ecx
and edx, 0x80000001
jns 0x4b2b03
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [eax], dl
add eax, 4
inc ecx
cmp ecx, ebp
jl 0x4b2af4
mov eax, dword [edi + 0x34]
lea ebp, [edi + 8]
mov ecx, ebp
mov dword [esp + 0x78], eax
call fcn.00531a50
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
and ecx, 0xff
mov edi, eax
mov dword [esp + 0x14], ecx
mov ebx, 1
lea eax, [ecx + ecx]
cmp eax, 1
jl 0x4b2b43
mov ebx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov edx, dword [esp + 0x6c]
mov ebx, eax
mov eax, 0xff
sub eax, ecx
dec edx
cmp edx, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
ja case.default.0x4b2b6a
jmp dword [edx*4 + 0x4b33c4]
push 0
mov ecx, ebp
call fcn.00531dd0
mov eax, 0x7fff
mov dword [esp + 0x38], 0xc8
cdq
idiv esi
mov dword [esp + 0x54], eax
mov eax, 0x7fff
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x50], eax
call fcn.005332a3
cdq
idiv dword [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.005332a3
cdq
idiv dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
cmp esi, ebx
mov edi, eax
jge 0x4b2bc0
mov ebx, esi
call fcn.005332a3
mov ecx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov ebx, eax
mov eax, ecx
cdq
idiv ebx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
call fcn.005332a3
mov ecx, eax
mov eax, 0xa00a00a1
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
test ebp, ebp
mov dword [esp + 0x7c], edx
jle 0x4b2c77
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], edi
sub eax, edi
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + edi]
test eax, eax
jle 0x4b2c39
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jge 0x4b2c39
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 8]
call fcn.00531c20
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add ecx, edx
cmp ecx, esi
jge 0x4b2c68
test edi, edi
jle 0x4b2c68
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
push edi
sub ecx, eax
add ecx, esi
push ecx
lea ecx, [edx + 8]
call fcn.00531c20
mov edx, dword [esp + 0x70]
inc ebx
inc edx
dec edi
cmp ebx, ebp
mov dword [esp + 0x70], edx
jl 0x4b2c0f
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x4b2b9c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
sub eax, edx
mov ecx, dword [esp + 0x10]
sub eax, 0x28
mov ebp, dword [esp + 0x5c]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x6c], eax
jle 0x4b337b
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], ecx
xor edi, edi
test esi, esi
jle 0x4b2d0e
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x54], eax
mov eax, ebx
mov cl, byte [esp + 0x7c]
cdq
idiv esi
mov dl, byte [edi + ebp]
add al, cl
add dl, al
mov byte [edi + ebp], dl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [edi + ebp]
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x54]
inc edi
add ebx, ecx
cmp edi, esi
jl 0x4b2cda
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
add ebp, edi
add edx, eax
dec ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x5c], ecx
jne 0x4b2cb8
jmp 0x4b337b
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4b2de2
mov ecx, dword [esp + 0x14]
mov eax, 0x40
sub eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv dword [esp + 0x10]
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, dword [esp + 0x54]
shl eax, 1
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x4b2dbf
mov byte [edi + ebp], bl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x4b2d9f
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x6c], eax
jne 0x4b2d59
mov eax, 0x2aaaaaab
mov dword [esp + 0x7c], 0x10
imul esi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x10
jg 0x4b2e01
mov dword [esp + 0x7c], edx
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x5c]
mov eax, edi
xor ecx, ecx
imul eax, edi
cdq
and edx, 3
mov dword [esp + 0x5c], ecx
add eax, edx
sar eax, 2
test edi, edi
mov dword [esp + 0x6c], eax
jle 0x4b337b
mov eax, edi
mov edi, dword [esp + 0x7c]
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
sar eax, 1
imul edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
jmp 0x4b2e49
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov ebp, ecx
sub edx, edi
sub ebp, eax
xor edi, edi
mov dword [esp + 0x50], edx
test esi, esi
jle 0x4b2f0e
mov eax, esi
mov dword [esp + 0x2c], edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x50]
imul eax, ebp
cdq
idiv dword [esp + 0x6c]
mov edx, dword [esp + 0x7c]
mov ebp, esi
sar ecx, 1
mov dword [esp + 0x4c], ecx
sub eax, edx
add eax, ecx
mov dword [esp + 0x38], eax
shl ebp, 7
jmp 0x4b2e99
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov edx, edi
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x20], edx
jle 0x4b2ebd
mov eax, ebp
mov cl, byte [esp + 0x14]
cdq
idiv dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
add al, cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x38]
add eax, edx
test eax, eax
jge 0x4b2ed5
mov eax, dword [esp + 0x2c]
cdq
idiv dword [esp + 0x7c]
mov dl, byte [esp + 0x24]
sub dl, al
mov byte [ebx + edi], dl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [ebx + edi]
sub ebp, 0x80
sub al, dl
add cl, al
mov byte [ebx + edi], cl
mov ecx, dword [esp + 0x2c]
inc edi
add ecx, 0x80
cmp edi, esi
mov dword [esp + 0x2c], ecx
jl 0x4b2e91
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x28]
add ebx, edx
mov edx, dword [esp + 0x7c]
add edi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x28], edi
cmp ecx, edx
mov dword [esp + 0x5c], ecx
jl 0x4b2e45
jmp 0x4b337b
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x4b337b
mov dword [esp + 0x7c], 0
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv ebx
mov ecx, eax
sub ecx, 0x7f
test esi, esi
jle 0x4b3015
mov eax, ecx
mov ebx, esi
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 7
mov dword [esp + 0x54], eax
mov eax, 0x80
sub eax, edx
shl ebx, 8
mov dword [esp + 0x6c], eax
sub ebx, esi
mov eax, ebx
cdq
idiv esi
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
mov ecx, dword [esp + 0x14]
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x54]
sar eax, 7
add eax, edx
imul eax, dword [esp + 0x6c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
add eax, 0x80
cmp eax, ecx
jge 0x4b2fe1
mov eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x4b2feb
mov eax, ecx
mov byte [edi + ebp], al
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [edi + ebp]
sub ebx, 0xff
sub al, dl
add cl, al
mov byte [edi + ebp], cl
inc ebp
cmp ebp, esi
jl 0x4b2f9a
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x4b2f50
jmp 0x4b337b
test esi, esi
mov dword [esp + 0x7c], 0
jle 0x4b337b
mov edi, esi
mov ebp, 0x80
shl edi, 8
sub ebp, ecx
sub edi, esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x38], edi
mov eax, edi
cdq
idiv esi
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, ebp
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x10]
sar ebx, 7
add ebx, 0x80
test eax, eax
jle 0x4b30db
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x10]
lea edi, [eax + ecx]
mov byte [edi], bl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x78]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x4b30b2
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x7c]
sub edi, 0xff
inc eax
mov dword [esp + 0x38], edi
cmp eax, esi
mov dword [esp + 0x7c], eax
jl 0x4b3063
jmp 0x4b337b
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4b337b
mov eax, 0x80
mov dword [esp + 0x7c], 0
sub eax, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cdq
idiv dword [esp + 0x10]
mov ecx, eax
sub ecx, 0x7f
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
imul eax, dword [esp + 0x6c]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x4b3182
mov byte [edi + ebp], bl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x4b3162
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x4b311e
jmp 0x4b337b
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x6c], eax
jle 0x4b337b
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], ecx
xor ebp, ebp
test esi, esi
jle 0x4b3228
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x54], eax
mov eax, ebx
mov cl, byte [esp + 0x14]
cdq
idiv esi
add al, byte [esp + 0x7c]
add al, cl
mov byte [edi + ebp], al
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov dl, byte [esp + 0x70]
mov cl, byte [edi + ebp]
sub al, dl
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x54]
inc ebp
add ebx, ecx
cmp ebp, esi
jl 0x4b31ef
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
add edi, ebx
add edx, eax
dec ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ecx
jne 0x4b31cd
jmp 0x4b337b
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4b337b
mov dword [esp + 0x7c], 0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
xor ebp, ebp
mov ebx, eax
add ebx, ecx
test esi, esi
jle 0x4b329d
mov byte [edi + ebp], bl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x4b327d
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
add edi, edx
mov edx, dword [esp + 0x6c]
add ecx, edx
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
jne 0x4b3266
jmp 0x4b337b
sub eax, ecx
mov dword [esp + 0x7c], 0
test esi, esi
jle 0x4b337b
mov ecx, eax
neg ecx
imul eax, esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
cdq
idiv esi
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
add ebx, edx
test eax, eax
jle 0x4b3329
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x10]
lea edi, [eax + ecx]
mov byte [edi], bl
call fcn.005332a3
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + 0x70]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x78]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x4b3304
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
inc edx
add eax, ecx
cmp edx, esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x6c], eax
jl 0x4b32e2
jmp 0x4b337b
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4b337b
mov dword [esp + 0x7c], eax
xor ebp, ebp
test esi, esi
jle 0x4b336a
call fcn.005332a3
cdq
idiv ebx
sub al, byte [esp + 0x70]
add al, 0x80
mov byte [edi + ebp], al
inc ebp
cmp ebp, esi
jl 0x4b3354
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
add edi, ecx
dec eax
mov dword [esp + 0x7c], eax
jne 0x4b334e
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + 8]
lea ecx, [ebx + 0x70]
push edi
call fcn.00531d90
lea esi, [ebx + 0xa4]
push edi
mov ecx, esi
call fcn.00531d90
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
and edx, 0xff
mov ecx, esi
push edx
push eax
call fcn.00531c70
push esi
lea ecx, [ebx + 0x3c]
call fcn.00531d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24