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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
xor edx, edx
push ebp
add ecx, ebx
push esi
cmp eax, edx
push edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x7c], edx
je 0x653942f9
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0x653797d8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], eax
or eax, 0xffffffff
xor edx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], edx
cmp eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
jne 0x65394279
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 5]
cmp eax, ecx
ja 0x65394c98
mov ebx, eax
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [ecx]
add ecx, 2
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
je case.0x653942f2.17
mov ebp, ecx
lea ecx, [eax - 0x20]
cmp ecx, 0x5f
ja 0x6539432c
mov edx, dword [esp + 0x30]
mov cl, byte [edx + eax - 0x20]
and ecx, 0xff
mov edi, ecx
xor ecx, ecx
xor edx, edx
mov cl, byte [edi*2 + 0x65379711]
mov dl, byte [edi*2 + 0x65379710]
mov esi, ecx
and ecx, 0x1f
shr esi, 5
test esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x64], ecx
je 0x653942e5
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x65394337
mov dword [esp + 0x4c], esi
mov ecx, dword [esp + 0x64]
cmp ecx, 0x11
ja case.default.0x653942f2
jmp dword [ecx*4 + 0x65394cc0]
dec ecx
lea eax, [ebx + 6]
cmp eax, ecx
mov dword [esp + 0x14], ecx
ja 0x65394c98
mov byte [ebx + 2], 0
mov byte [ebx + 3], 0
mov byte [ebx + 4], 0
mov byte [ebx + 5], 0
mov dword [esp + 0x2c], edx
mov ebx, eax
mov dword [esp + 0x30], 0x65379778
jmp 0x65394237
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx]
jmp 0x653942ab
cmp ecx, esi
je 0x653942e5
test eax, eax
je case.0x653942f2.17
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x65394c31
mov edx, dword [esp + 0x48]
lea ecx, [ebp - 2]
cmp edx, ecx
jne 0x65394c10
mov ecx, dword [esp + 0x44]
mov dl, byte [ecx]
inc dl
inc ebx
mov byte [ecx], dl
mov byte [ebx - 1], al
mov byte [ebx], ah
inc ebx
jmp 0x65394c42
cmp dword [esp + 0x2c], 2
je 0x653948cc
mov dword [esp + 0x60], edi
mov edi, 0xb
jmp 0x653942b3
push 4
push str.M_PM
push ebp
call fcn.65358fa4
add esp, 0xc
mov ecx, 4
test eax, eax
jle 0x653943de
mov ecx, dword [esp + 0x20]
push 3
dec ecx
push 0x653c82f0
push ebp
mov dword [esp + 0x2c], ecx
call fcn.65358fa4
add esp, 0xc
mov ecx, 3
test eax, eax
je 0x65394972
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], edi
mov edi, 0xc
jmp 0x653942b3
jge 0x653943c4
mov ecx, dword [esp + 0x20]
push 2
inc ecx
push 0x653c82f8
push ebp
mov dword [esp + 0x2c], ecx
call fcn.65358fa4
add esp, 0xc
mov ecx, 2
jmp 0x653943c4
xor eax, eax
mov ax, word [ebp]
lea ecx, [eax - 0x20]
cmp ecx, 0x5f
ja 0x65394478
mov ecx, dword [esp + 0x30]
mov al, byte [ecx + eax - 0x20]
and eax, 0xff
cmp edi, eax
jne 0x65394480
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 3]
add ebp, 2
cmp ecx, eax
mov dword [esp + 0x10], ebp
ja 0x65394c98
inc dl
mov al, byte [esp + 0x84]
mov byte [ebx], dl
mov dl, byte [esp + 0x80]
inc ebx
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
inc ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x2c], ecx
mov ax, word [ebp]
add ebp, 2
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
je case.0x653942f2.17
jmp 0x65394297
mov eax, dword [esp + 0x30]
mov al, byte [eax]
jmp 0x65394416
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 2]
cmp ecx, eax
ja 0x65394c98
mov byte [ebx], dl
mov dl, byte [esp + 0x80]
inc ebx
mov byte [ebx], dl
inc ebx
jmp case.default.0x653942f2
mov eax, dword [esp + 0x88]
push eax
call fcn.65343e94
test eax, eax
je 0x65394c07
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 8
mov cl, byte [edi + 0x65379760]
mov ebp, ecx
mov ecx, 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], ecx
jne 0x653944e4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x653944e4
mov ebp, 4
mov dword [esp + 0x34], ebp
cmp ebp, 1
jbe 0x6539452e
mov eax, dword [esp + 0x10]
lea esi, [eax + 2]
xor eax, eax
cmp edi, 0xb
mov ax, word [esi - 2]
je 0x6539456c
cmp edi, 0xc
je 0x6539456c
lea ebp, [eax - 0x20]
cmp ebp, 0x5f
ja 0x65394594
mov ebp, dword [esp + 0x30]
xor edx, edx
mov dl, byte [ebp + eax - 0x20]
cmp edi, edx
jne 0x65394586
mov ebp, dword [esp + 0x34]
inc ecx
add esi, 2
cmp ecx, ebp
jb 0x65394566
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
cmp ebp, 0xff
jne 0x6539459e
mov esi, dword [esp + 0x14]
lea eax, [ebx + 2]
cmp eax, esi
ja 0x65394c98
mov eax, dword [esp + 0x28]
mov byte [ebx], dl
mov edx, dword [esp + 0x10]
inc ebx
mov byte [ebx], cl
inc ebx
add eax, ecx
mov dword [esp + 0x28], eax
lea eax, [edx + ecx*2 - 2]
mov dword [esp + 0x10], eax
jmp case.default.0x653942f2
mov edx, dword [esp + 0x20]
jmp 0x653944f0
lea ebp, [eax - 0x20]
cmp ebp, 0x5f
ja 0x65394594
mov ebp, dword [esp + 0x30]
xor edx, edx
mov dl, byte [ebp + eax - 0x20]
mov eax, dword [esp + 0x60]
cmp eax, edx
je 0x6539451a
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
jmp 0x6539452e
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
jmp 0x6539452e
mov eax, dword [esp + 0x74]
test eax, eax
je 0x653947f1
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
call fcn.653527f2
add esp, 0xc
mov dword [esp + 0x7c], eax
test eax, eax
je 0x653945cf
jl 0x65394b8a
mov edx, dword [esp + 0x20]
cmp edx, 8
jne 0x65394630
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xd78], 2
je 0x653945f8
mov eax, dword [esp + 0x18]
cmp eax, 3
jb 0x653945f8
cmp eax, 4
ja 0x653945f8
mov edx, 0x22
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
cmp esi, 8
jne 0x65394609
cmp eax, ebp
jne 0x6539461b
cmp esi, 0xe
jne 0x653947fa
cmp eax, 3
jae 0x653947fa
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ebp, ecx
mov ax, word [ecx - 2]
mov dword [esp + 0x18], eax
jmp case.0x653942f2.6
cmp edx, 0x11
jne 0x65394657
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0xd78], 2
je 0x653945f8
mov eax, dword [esp + 0x18]
cmp eax, 3
jb 0x653945f8
cmp eax, 4
ja 0x653945f8
mov edx, 0x24
jmp 0x653945f8
cmp edx, 0x15
jne 0x653947a3
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xd78]
cmp eax, 3
je 0x65394723
cmp eax, 4
je 0x65394723
cmp eax, 5
jne 0x653946ff
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x65394691
jmp dword [eax*4 + 0x65394d08]
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, edx
ja 0x65394c98
mov edx, dword [esp + 0x10]
mov byte [ebx], 0x2c
mov ebx, eax
lea eax, [edx + ecx*2 - 2]
mov dword [esp + 0x10], eax
jmp case.default.0x653942f2
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, edx
ja 0x65394c98
mov byte [ebx], 0x2b
cmp ecx, 2
mov ebx, eax
je case.default.0x65394691
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, edx
ja 0x65394c98
mov edx, dword [esp + 0x10]
mov byte [ebx], 0x15
mov ebx, eax
lea eax, [edx + ecx*2 - 2]
mov dword [esp + 0x10], eax
jmp case.default.0x653942f2
cmp dword [esp + 0x18], 1
jne 0x653945f8
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
ja 0x65394c98
mov byte [ebx], 0x19
mov ebx, eax
jmp case.default.0x653942f2
mov ecx, dword [esp + 0x18]
mov eax, ecx
dec eax
je 0x6539477e
sub eax, 2
je 0x65394756
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, edx
ja 0x65394c98
mov byte [ebx], 0x2c
mov ebx, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*2 - 2]
mov dword [esp + 0x10], ecx
jmp case.default.0x653942f2
mov eax, dword [esp + 0x14]
lea edx, [ebx + 2]
cmp edx, eax
ja 0x65394c98
mov eax, dword [esp + 0x10]
mov byte [ebx], 0x2c
inc ebx
lea ecx, [eax + ecx*2 - 2]
mov byte [ebx], 0x2b
inc ebx
mov dword [esp + 0x10], ecx
jmp case.default.0x653942f2
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, edx
ja 0x65394c98
mov byte [ebx], 0x2b
mov ebx, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*2 - 2]
mov dword [esp + 0x10], ecx
jmp case.default.0x653942f2
cmp edx, 0x28
jne 0x653945f8
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0xd78]
cmp eax, 3
jl case.default.0x653942f2
cmp eax, 5
jg case.default.0x653942f2
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
ja 0x65394c98
mov ecx, dword [esp + 0x10]
mov byte [ebx], 0x2a
mov ebx, eax
mov eax, dword [esp + 0x18]
lea edx, [ecx + eax*2 - 2]
mov dword [esp + 0x10], edx
jmp case.default.0x653942f2
mov edx, dword [esp + 0x20]
jmp 0x653945f8
cmp edx, 0x15
jne 0x65394833
cmp eax, 3
jne 0x65394833
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x65394833
mov eax, dword [esp + 0x14]
lea edx, [ebx + 2]
cmp edx, eax
ja 0x65394c98
mov eax, dword [esp + 0x10]
mov byte [ebx], 0x16
inc ebx
mov byte [ebx], 0x15
inc ebx
add eax, 4
mov dword [esp + 0x10], eax
jmp case.default.0x653942f2
cmp edx, 0x1e
jne 0x65394873
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], ebx
test eax, eax
je 0x65394849
mov edx, 0x20
cmp ebx, dword [esp + 0x14]
jae 0x65394c98
mov al, byte [esp + 0x18]
mov ecx, dword [esp + 0x18]
add dl, al
dec dl
mov byte [ebx], dl
inc ebx
mov edx, dword [esp + 0x10]
lea eax, [edx + ecx*2 - 2]
mov dword [esp + 0x10], eax
jmp case.default.0x653942f2
cmp edx, 0x11
jne 0x65394849
cmp eax, 2
ja 0x65394849
mov eax, dword [esp + 0x40]
test eax, eax
je 0x65394849
inc eax
cmp eax, ebx
jae 0x653948a4
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp ecx, 3
je 0x653948a0
cmp ecx, 4
je 0x653948a0
test ecx, ecx
jne 0x653948ab
add eax, 2
cmp eax, ebx
jb 0x6539488a
mov edx, 0x1a
jmp 0x65394849
cmp ecx, 1
jne 0x65394849
xor ecx, ecx
mov cl, byte [eax]
lea eax, [eax + ecx*2 + 1]
jmp 0x653948a0
cmp ebx, dword [esp + 0x14]
jae 0x65394c98
mov byte [ebx], dl
inc ebx
jmp case.default.0x653942f2
test byte [esp + 0x1c], 2
jne case.0x653942f2.6
xor eax, eax
mov ax, word [ebp]
cmp eax, 0x2d
mov dword [esp + 0x18], eax
jne 0x6539491f
inc edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add ebp, 2
or ecx, 2
cmp eax, 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ecx
jne 0x6539490a
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor esi, esi
xor eax, eax
mov ax, word [ebp]
cmp eax, 0x30
jne 0x65394929
inc ecx
add ebp, 2
jmp 0x6539490e
cmp eax, 0x2b
je 0x653948e7
jmp case.0x653942f2.6
cmp eax, 0x23
jne 0x6539493c
test ecx, ecx
jne 0x65394937
mov esi, 1
add ebp, 2
jmp 0x6539490e
cmp ecx, 1
mov dword [esp + 0x10], ebp
jne 0x6539494e
test esi, esi
je 0x6539494e
mov ecx, 2
cmp ecx, 3
jbe 0x65394958
mov ecx, 3
mov esi, dword [esp + 0x14]
lea eax, [ebx + 2]
cmp eax, esi
ja 0x65394c98
mov byte [ebx], dl
inc ebx
mov byte [ebx], cl
inc ebx
jmp case.default.0x653942f2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x6539497d
add byte [eax], 2
mov eax, dword [esp + 0x14]
lea ecx, [ebp + ecx*2]
cmp ebx, eax
mov dword [esp + 0x68], 1
mov dword [esp + 0x10], ecx
jae 0x65394c98
mov dl, byte [esp + 0x20]
mov byte [ebx], dl
inc ebx
jmp case.default.0x653942f2
cmp dword [esp + 0x24], 0xffffffff
jne case.0x653942f2.6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jae 0x65394c98
mov byte [ebx], dl
inc ebx
jmp case.default.0x653942f2
cmp dword [esp + 0x2c], 2
jne case.0x653942f2.6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
or edx, 1
inc ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], ecx
jmp case.0x653942f2.6
cmp dword [esp + 0x2c], 2
jne case.0x653942f2.6
cmp dword [esp + 0x24], 0xffffffff
jne case.default.0x653942f2
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x65394a28
cmp eax, dword [esp + 0x28]
jne 0x65394a1e
inc dword [esp + 0x50]
jmp case.default.0x653942f2
mov eax, dword [esp + 0x1c]
or al, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], 1
mov dword [esp + 0x3c], ecx
jmp case.default.0x653942f2
or dword [esp + 0x1c], edx
jmp case.default.0x653942f2
mov cx, word [ebp]
xor edx, edx
test cx, cx
mov esi, ebp
je 0x65394a6e
and ecx, 0xffff
add ebp, 2
cmp ecx, eax
je 0x65394a6a
mov cx, word [ebp]
inc edx
test cx, cx
jne 0x65394a53
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x74]
test eax, eax
je 0x65394aa9
mov ecx, dword [esp + 0x14]
lea eax, [edx + ebx + 2]
cmp eax, ecx
ja 0x65394c98
mov byte [ebx], 1
inc ebx
lea eax, [edx + edx]
mov ecx, eax
mov byte [ebx], dl
inc ebx
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, eax
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x653942f2
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 3]
cmp eax, ecx
ja 0x65394c98
mov cl, byte [esp + 0x20]
mov edi, dword [esp + 0x70]
mov eax, esi
mov byte [ebx], cl
sub eax, edi
inc ebx
sar eax, 1
mov byte [ebx], al
inc ebx
mov byte [ebx], dl
inc ebx
jmp case.default.0x653942f2
xor eax, eax
mov ax, word [ebp]
add ebp, 2
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jne case.default.0x653942f2
cmp ebx, dword [esp + 0x14]
jae 0x65394c98
mov ecx, dword [esp + 0x74]
mov byte [ebx], 2
inc ebx
test ecx, ecx
jne 0x65394b8a
mov dl, byte [esp + 0x54]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x5c]
sub dl, cl
or edi, 0xffffffff
mov byte [esi + ecx + 2], dl
mov ecx, dword [esp + 0x24]
cmp ecx, edi
mov ecx, dword [esp + 0x28]
jne 0x65394b2c
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
cmp edx, edi
mov byte [esi + 2], 0
je 0x65394b57
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
cmp edi, edx
jne 0x65394c8e
mov cl, byte [esp + 0x50]
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x28]
mov dl, byte [esp + 0x24]
mov esi, dword [esp + 0x54]
sub cl, dl
mov byte [esi + 4], cl
mov cl, byte [esp + 0x58]
mov byte [esi + 3], dl
mov dl, byte [esp + 0x1c]
test eax, eax
mov byte [esi + 1], cl
mov byte [esi], dl
je 0x65394b8a
mov eax, dword [esp + 0x5c]
inc eax
cmp eax, 4
mov dword [esp + 0x5c], eax
jb 0x65394243
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x65394ca5
mov eax, dword [esp + 0x78]
mov cl, byte [esp + 0x2c]
sub bl, al
mov byte [eax], bl
mov byte [eax + 1], cl
mov eax, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
xor eax, eax
mov ax, word [ebp]
add ebp, 2
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
je case.0x653942f2.17
cmp eax, 0x5d
je 0x65394bdc
xor eax, eax
mov ax, word [ebp]
add ebp, 2
test eax, eax
jne 0x65394bca
test eax, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
jne case.default.0x653942f2
jmp case.0x653942f2.17
xor eax, eax
mov ax, word [ebp]
add ebp, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jmp case.0x653942f2.6
mov eax, dword [esp + 0x18]
jmp case.0x653942f2.6
mov ecx, dword [esp + 0x14]
lea edx, [ebx + 4]
cmp edx, ecx
ja 0x65394c98
mov byte [ebx], 1
inc ebx
mov dword [esp + 0x44], ebx
mov byte [ebx], 1
inc ebx
mov byte [ebx], al
inc ebx
mov byte [ebx], ah
jmp 0x6539436e
mov ecx, dword [esp + 0x48]
lea eax, [ebp - 2]
cmp ecx, eax
jne 0x65394c53
mov eax, dword [esp + 0x44]
inc byte [eax]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], eax
jmp case.default.0x653942f2
mov edi, dword [esp + 0x70]
mov eax, ebp
sub eax, edi
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x1fe
jg 0x65394b8a
mov ecx, dword [esp + 0x14]
lea edx, [ebx + 3]
cmp edx, ecx
ja 0x65394c98
mov byte [ebx], 0
inc ebx
sar eax, 1
dec al
mov byte [ebx], al
inc ebx
mov dword [esp + 0x44], ebx
mov byte [ebx], 1
jmp 0x6539436e
or dword [esp + 0x1c], 4
jmp 0x65394b57
mov dword [esp + 0x7c], 0x80020013
jmp 0x65394b8a
mov ecx, dword [esp + 0x78]
pop edi
mov eax, ebx
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x5c
ret