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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x24], edi
mov ecx, dword [edi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
sub esi, ecx
sub ebx, edx
cmp esi, 1
mov dword [esp + 0x10], ebx
mov eax, 1
jl 0x410090
mov eax, esi
push 8
lea ecx, [edi + 0x3c0]
push 1
push eax
mov dword [esp + 0x54], ecx
call fcn.004094c0
cmp ebx, 1
mov eax, 1
jl 0x4100b0
mov eax, ebx
push 8
lea ecx, [edi + 0x404]
push eax
push 1
mov dword [esp + 0x58], ecx
call fcn.004094c0
push 8
lea ecx, [edi + 0x2b0]
push ebx
push esi
mov dword [esp + 0x50], ecx
call fcn.004094c0
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call edi
push 0xf
mov dword [esp + 0x44], 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 + 0x3c], 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 + 0x38], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x58], ecx
mov ecx, ebp
neg ecx
mov dword [esp + 0x54], ecx
mov ecx, edi
shr ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x14], edx
neg ecx
shl eax, 7
shl ebp, 7
shl edi, 7
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add eax, edx
mov ecx, dword [esp + 0x28]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x30]
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x44]
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x14]
mov ebx, eax
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
push ebp
push edi
push edx
call fcn.00409820
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push ebx
push ebp
push edi
push eax
call fcn.00409820
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.00409820
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
add ebp, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x54]
add ebx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
add ebp, ecx
mov ecx, dword [esp + 0x30]
inc edi
add ebx, edx
add ecx, eax
cmp edi, 0x81
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
jl 0x410171
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
mov eax, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
neg eax
mov dword [esp + 0x48], eax
mov eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], 1
neg eax
mov dword [esp + 0x4c], eax
mov eax, ecx
neg eax
mov dword [esp + 0x50], eax
mov eax, edi
shl eax, 7
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, edx
shl eax, 7
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 7
sub eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x20]
cdq
and edx, 0x7f
add ecx, 0x2b0
add eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x18]
add eax, edx
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
mov al, byte [esp + 0x14]
sar ebx, 7
sar ebp, 7
sar edi, 7
push ebx
add al, 0x7f
push ebp
push edi
push eax
mov byte [esp + 0x4c], al
call fcn.00409820
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push edi
push edx
lea ecx, [eax + 0x3c0]
call fcn.00409820
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push edi
push ecx
lea ecx, [edx + 0x404]
call fcn.00409820
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x50]
add edi, edx
mov edx, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x44]
inc eax
add ebx, ecx
add edi, edx
cmp eax, 0x81
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
jl 0x4102cc
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x20]
and eax, 0xff
push eax
push ecx
lea ecx, [ebp + 0x2b0]
call fcn.00409640
lea edi, [ebp + 0x3c0]
mov ecx, edi
call fcn.004095f0
mov ecx, edi
mov ebx, eax
call fcn.00409610
xor ecx, ecx
test eax, eax
jle 0x410415
mov edx, ecx
and edx, 0x80000001
jns 0x41040b
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [ebx + ecx], dl
inc ecx
cmp ecx, eax
jl 0x4103fc
lea ebx, [ebp + 0x404]
mov ecx, ebx
call fcn.004095f0
mov ecx, ebx
mov edi, eax
call fcn.00409620
xor ecx, ecx
test eax, eax
jle 0x41044c
mov edx, ecx
and edx, 0x80000001
jns 0x410440
dec edx
or edx, 0xfffffffe
inc edx
neg dl
mov byte [edi], dl
add edi, 4
inc ecx
cmp ecx, eax
jl 0x410431
add ebp, 0x2b0
mov ecx, ebp
call fcn.00409630
mov ecx, ebp
mov dword [esp + 0x7c], eax
call fcn.004095f0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], eax
and ecx, 0xff
mov edi, eax
mov dword [esp + 0x18], ecx
mov ebx, 1
lea eax, [ecx + ecx]
cmp eax, 1
jl 0x410487
mov ebx, eax
mov eax, 0x7fff
cdq
idiv ebx
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, 0xff
sub eax, ecx
dec edx
cmp edx, 7
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
ja case.default.0x4104ae
jmp dword [edx*4 + 0x410da4]
push 0
mov ecx, ebp
call fcn.00409730
mov eax, 0x7fff
mov dword [esp + 0x3c], 0xc8
cdq
idiv esi
mov dword [esp + 0x58], eax
mov eax, 0x7fff
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x54], eax
call fcn.00425101
cdq
idiv dword [esp + 0x58]
mov dword [esp + 0x24], eax
call fcn.00425101
cdq
idiv dword [esp + 0x54]
mov edi, dword [esp + 0x10]
cmp esi, edi
mov ebp, eax
jge 0x410504
mov edi, esi
call fcn.00425101
mov ecx, eax
mov eax, 0x7fff
cdq
idiv edi
mov edi, eax
mov eax, ecx
cdq
idiv edi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00425101
mov ecx, eax
mov eax, 0xa00a00a1
imul ecx
add edx, ecx
xor edi, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
test ebx, ebx
mov dword [esp + 0x80], edx
jle 0x4105e1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ebp
sub ecx, ebp
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
test eax, eax
jle 0x410593
mov edx, dword [esp + 0x10]
lea eax, [edi + ebp]
cmp eax, edx
jge 0x410593
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x28]
sub edx, edi
push edx
lea ecx, [eax + 0x2b0]
call fcn.00409770
mov ecx, dword [esp + 0x70]
lea edx, [ecx + ebp]
add edx, edi
cmp edx, esi
jge 0x4105cf
mov eax, dword [esp + 0x74]
test eax, eax
jle 0x4105cf
mov eax, dword [esp + 0x80]
mov edx, edi
push eax
mov eax, dword [esp + 0x28]
mov ecx, ebp
sub edx, eax
mov eax, dword [esp + 0x24]
sub ecx, edi
add edx, esi
push ecx
push edx
lea ecx, [eax + 0x2b0]
call fcn.00409770
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
inc edi
dec edx
cmp edi, ebx
mov dword [esp + 0x74], edx
jl 0x41055a
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x4104e0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
sub eax, edx
mov ecx, dword [esp + 0x10]
sub eax, 0x28
mov ebp, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x70], eax
jle 0x410d51
mov dword [esp + 0x74], 0
mov dword [esp + 0x3c], ecx
xor edi, edi
test esi, esi
jle 0x41067e
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x58], eax
mov eax, ebx
mov cl, byte [esp + 0x80]
cdq
idiv esi
mov dl, byte [edi + ebp]
add al, cl
add dl, al
mov byte [edi + ebp], dl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [edi + ebp]
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x58]
inc edi
add ebx, ecx
cmp edi, esi
jl 0x410647
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x3c]
add ebp, edi
add edx, eax
dec ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], ecx
jne 0x410622
jmp 0x410d51
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x41075e
mov ecx, dword [esp + 0x18]
mov eax, 0x40
sub eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x80]
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 + 0x58]
shl eax, 1
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x410735
mov byte [edi + ebp], bl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x410715
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], eax
jne 0x4106cc
mov eax, 0x2aaaaaab
mov dword [esp + 0x80], 0x10
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x10
jg 0x410783
mov dword [esp + 0x80], edx
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, edi
xor ecx, ecx
imul eax, edi
cdq
and edx, 3
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 2
test edi, edi
mov dword [esp + 0x70], eax
jle 0x410d51
mov eax, edi
mov edi, dword [esp + 0x80]
cdq
sub eax, edx
mov dword [esp + 0x2c], ecx
sar eax, 1
imul edi, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], edi
jmp 0x4107ce
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov ebp, ecx
sub edx, edi
sub ebp, eax
xor edi, edi
mov dword [esp + 0x54], edx
test esi, esi
jle 0x41089c
mov eax, esi
mov dword [esp + 0x30], edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x54]
imul eax, ebp
cdq
idiv dword [esp + 0x70]
mov edx, dword [esp + 0x80]
mov ebp, esi
sar ecx, 1
mov dword [esp + 0x50], ecx
sub eax, edx
add eax, ecx
mov dword [esp + 0x3c], eax
shl ebp, 7
jmp 0x410821
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov edx, edi
sub edx, ecx
cmp edx, eax
mov dword [esp + 0x24], edx
jle 0x410848
mov eax, ebp
mov cl, byte [esp + 0x18]
cdq
idiv dword [esp + 0x80]
mov edx, dword [esp + 0x24]
add al, cl
mov byte [ebx + edi], al
mov eax, dword [esp + 0x3c]
add eax, edx
test eax, eax
jge 0x410863
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x28]
cdq
idiv dword [esp + 0x80]
sub cl, al
mov byte [ebx + edi], cl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
mov cl, byte [ebx + edi]
sub ebp, 0x80
sub al, dl
add cl, al
mov byte [ebx + edi], cl
mov ecx, dword [esp + 0x30]
inc edi
add ecx, 0x80
cmp edi, esi
mov dword [esp + 0x30], ecx
jl 0x410819
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x2c]
add ebx, edx
mov edx, dword [esp + 0x80]
add edi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x2c], edi
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x4107ca
jmp 0x410d51
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x410d51
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x80]
xor ebp, ebp
cdq
idiv ebx
mov ecx, eax
sub ecx, 0x7f
test esi, esi
jle 0x4109ac
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 + 0x18]
sar eax, 7
mov dword [esp + 0x58], eax
mov eax, 0x80
sub eax, edx
shl ebx, 8
mov dword [esp + 0x70], 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 + 0x18]
add eax, edx
sar eax, 7
cdq
and edx, 0x7f
add eax, edx
mov edx, dword [esp + 0x58]
sar eax, 7
add eax, edx
imul eax, dword [esp + 0x70]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
add eax, 0x80
cmp eax, ecx
jge 0x410978
mov eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x410982
mov eax, ecx
mov byte [edi + ebp], al
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
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 0x410931
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x4108e4
jmp 0x410d51
test esi, esi
mov dword [esp + 0x80], 0
jle 0x410d51
mov edi, esi
mov ebp, 0x80
shl edi, 8
sub ebp, ecx
sub edi, esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], 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 0x410a7e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x10]
lea edi, [ecx + eax]
mov byte [edi], bl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x7c]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x410a55
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x80]
sub edi, 0xff
inc eax
mov dword [esp + 0x3c], edi
cmp eax, esi
mov dword [esp + 0x80], eax
jl 0x410a03
jmp 0x410d51
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x410d51
mov eax, 0x80
mov dword [esp + 0x80], 0
sub eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
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 + 0x70]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
sar ebx, 7
add ebx, 0x80
test esi, esi
jle 0x410b31
mov byte [edi + ebp], bl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x410b11
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
add ecx, 0xff
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x410aca
jmp 0x410d51
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x70], eax
jle 0x410d51
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], ecx
xor ebp, ebp
test esi, esi
jle 0x410be3
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x70]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov eax, ebx
neg eax
imul ebx, esi
mov dword [esp + 0x58], eax
mov eax, ebx
mov cl, byte [esp + 0x18]
cdq
idiv esi
add al, byte [esp + 0x80]
add al, cl
mov byte [edi + ebp], al
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov dl, byte [esp + 0x74]
mov cl, byte [edi + ebp]
sub al, dl
add cl, al
mov byte [edi + ebp], cl
mov ecx, dword [esp + 0x58]
inc ebp
add ebx, ecx
cmp ebp, esi
jl 0x410ba7
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add edi, ebx
add edx, eax
dec ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
jne 0x410b82
jmp 0x410d51
sub eax, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x410d51
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
cdq
idiv dword [esp + 0x10]
xor ebp, ebp
mov ebx, eax
add ebx, ecx
test esi, esi
jle 0x410c5e
mov byte [edi + ebp], bl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi + ebp]
sub al, cl
add dl, al
mov byte [edi + ebp], dl
inc ebp
cmp ebp, esi
jl 0x410c3e
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
add edi, edx
mov edx, dword [esp + 0x70]
add ecx, edx
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], eax
jne 0x410c24
jmp 0x410d51
sub eax, ecx
xor edi, edi
test esi, esi
mov dword [esp + 0x80], edi
jle 0x410d51
mov ecx, eax
mov ebp, dword [esp + 0x10]
neg ecx
imul eax, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
cdq
idiv esi
mov edx, dword [esp + 0x18]
mov ebx, eax
add ebx, edx
test ebp, ebp
jle 0x410cf7
mov eax, dword [esp + 0x14]
add edi, eax
mov byte [edi], bl
call fcn.00425101
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esp + 0x74]
mov dl, byte [edi]
sub al, cl
mov ecx, dword [esp + 0x7c]
add dl, al
mov byte [edi], dl
add edi, ecx
dec ebp
jne 0x410cc7
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
inc edi
add edx, ecx
cmp edi, esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x70], edx
jl 0x410cae
jmp 0x410d51
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x410d51
mov dword [esp + 0x80], eax
xor ebp, ebp
test esi, esi
jle 0x410d3a
call fcn.00425101
cdq
idiv ebx
sub al, byte [esp + 0x74]
add al, 0x80
mov byte [edi + ebp], al
inc ebp
cmp ebp, esi
jl 0x410d24
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
add edi, ecx
dec eax
mov dword [esp + 0x80], eax
jne 0x410d1e
mov ebx, dword [esp + 0x20]
lea edi, [ebx + 0x2b0]
lea ecx, [ebx + 0x338]
push edi
call fcn.004097c0
lea esi, [ebx + 0x37c]
push edi
mov ecx, esi
call fcn.004097c0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x40]
and ecx, 0xff
push ecx
push edx
mov ecx, esi
call fcn.00409640
push esi
lea ecx, [ebx + 0x2f4]
call fcn.004097c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14