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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, esp
mov dword [esi + 0x220], ebp
lea ebx, [esi + 0x228]
mov dword [ebx - 4], esp
xor eax, eax
dec eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0x457d60
mov eax, dword fs:[0]
mov dword [ebx], eax
mov dword fs:[0], ebx
mov eax, 0x190
lea edi, [esi + 0x90]
push eax
push 0xff
push edi
call fcn.004d5a00
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [esi + 0x10], edi
mov eax, 0x190
add edi, eax
mov dword [esi + 0x5c], edi
xor eax, eax
dec eax
mov dword [esi + 0x58], eax
lea ecx, [esi + 0x52]
mov word [ecx], ax
lea ecx, [esi + 0x50]
mov word [ecx], ax
lea ecx, [esi + 0x54]
mov dword [ecx], eax
mov dword [esi + 0x4c], fcn.004ff490
mov dword [ebx + 8], 1
xor edi, edi
lea ebx, [esi + 0x60]
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov dword [ebx + 8], edi
lea edx, [esi + 0x18]
mov dword [edx + 4], edi
mov dword [edx], edi
mov dword [edx + 8], edi
lea ecx, [esi + 0x38]
mov dword [ecx + 4], edi
mov dword [ecx], edi
mov dword [ecx + 8], edi
lea eax, [esi + 0x28]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
movzx edi, byte [ebp + 0x10]
mov dword [esi], edi
lea edi, [esi + 0x54]
push edi
push eax
push ecx
push edx
mov dword [esi + 0x14], ebx
push ebx
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x52]
push eax
lea eax, [esi + 0x58]
push eax
push dword [ebp + 0x14]
push dword [esi]
call fcn.0043b9a0
add esp, 0x28
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [ecx], eax
xor ecx, ecx
xor edi, edi
cmp edi, 3
mov dword [esi + 4], ecx
ja 0x512dc9
mov dword [esi + 8], edi
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00503c60
test al, al
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
jne 0x512dc9
movsx eax, byte [esi + edi + 0x58]
cmp eax, 4
ja case.default.0x5127db
jmp dword [eax*4 + 0x513238]
cmp edi, 3
jne 0x512ba7
jmp 0x512978
movzx ebx, word [edx]
cmp bx, word [edi]
jne 0x512c55
add edx, 2
add edi, 2
cmp edx, dword [esi + 0xc]
jne 0x5127f0
jmp 0x512fc8
mov dword [esi + 0xc], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00503c60
test al, al
jne 0x512993
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x5128c6
movzx edx, word [eax]
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
mov word [esi], dx
movzx edx, dx
push edx
push 4
call dword [eax + 0xc]
test al, al
je 0x51286a
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x30]
movzx edi, word [esi]
je 0x5128dc
lea ecx, [eax + 2]
mov dword [edx], ecx
mov word [eax], di
inc dword [esi + 0xc]
jmp 0x5128ae
movzx eax, byte [esi + 0x6b]
test al, al
movzx ecx, word [esi]
jns 0x512878
mov eax, dword [esi + 0x64]
cmp cx, word [esi + 0x50]
jne 0x512993
cmp dword [esi + 0xc], 0
je 0x512993
test eax, eax
je 0x512993
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x5c]
je 0x5128f9
lea ecx, [eax + 4]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x5128d2
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x512813
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, eax
jmp 0x51283b
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x512813
lea eax, [ebp + 0x30]
push eax
push edx
push dword [ebp + 0x28]
call fcn.00513250
add esp, 0xc
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
movzx edi, word [esi]
jmp 0x51285d
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.00511e10
add esp, 0xc
mov eax, dword [esi + 0x10]
jmp 0x51289c
test ecx, ecx
jne 0x512acc
cmp edi, 2
jb 0x512acc
cmp edi, 2
sete al
cmp byte [esi + 0x5b], 0
setne cl
test al, cl
jne 0x512941
xor eax, eax
mov ecx, dword [ebp + 0x18]
and ecx, 0x200
je 0x51297e
mov al, byte [esi + 0x23]
test al, al
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, ecx
jmp 0x512ae2
movzx edx, byte [esi + 0x43]
mov eax, edx
test dl, dl
jns 0x512961
mov eax, dword [esi + 0x3c]
movzx ebx, byte [esi + 0x33]
mov edi, ebx
test bl, bl
jns 0x51296e
mov edi, dword [esi + 0x2c]
mov ecx, eax
add ecx, edi
jne 0x512b2f
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
inc edi
mov ecx, eax
jmp 0x51279a
cmp edi, 3
jne 0x512b57
mov eax, ecx
jmp 0x51297e
cmp dword [esi + 0xc], 0
je 0x5129b5
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x48], eax
je 0x5129b5
cmp eax, dword [esi + 0x5c]
je 0x512d82
lea ecx, [eax + 4]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
cmp dword [esi + 0x54], 0
jle 0x512ab1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00503c60
test al, al
jne 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512d08
movzx eax, word [eax]
cmp ax, word [esi + 0x52]
jne 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512d12
add eax, 2
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x54], 0
jle 0x512ab1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00503c60
test al, al
jne 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512aa3
movzx eax, word [eax]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 4
call dword [edx + 0xc]
test al, al
je 0x51310a
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x512a68
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.00513250
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512aaa
movzx eax, word [eax]
mov edi, dword [ebp + 0x2c]
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov dword [edi], edx
mov word [ecx], ax
dec dword [esi + 0x54]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x512a02
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x512a08
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x512a36
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x512a78
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x28]
cmp ecx, dword [edx]
mov edi, dword [esi + 8]
jne 0x51297e
jmp 0x51310a
mov al, byte [esi + 0x23]
test al, al
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, ecx
test edi, edi
je 0x512c5b
lea edx, [esi + 0x58]
cmp byte [edi + edx - 1], 1
ja 0x512c5b
test al, al
lea edx, [esi + 0x18]
movzx edi, al
cmovs edi, dword [esi + 0x1c]
cmovs edx, ecx
lea edx, [edx + edi*2]
cmp ebx, edx
mov dword [esi], ebx
je 0x512c13
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
mov ebx, dword [esi]
test al, al
je 0x512f09
add ebx, 2
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
jmp 0x512af0
test eax, eax
je 0x512d49
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x512f1c
cmp eax, ebx
jne 0x512f14
jmp 0x51300d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512d5f
movzx eax, word [eax]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512d9e
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [esi + 0x70]
push eax
call fcn.004c1a60
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00503c60
test al, al
jne 0x512978
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512c05
movzx eax, word [eax]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x512978
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512c0c
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [esi + 0x70]
push eax
call fcn.004c1a60
jmp 0x512ba7
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x512bcb
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x512bf7
test al, al
lea edx, [esi + 0x18]
cmovs edx, ecx
mov dword [esi + 0x80], edx
sub ebx, edx
mov dword [esi + 0x88], ebx
mov edi, ebx
sar edi, 1
mov dword [esi + 0xc], edi
movzx ebx, byte [esi + 0x7b]
mov edx, ebx
mov dword [esi + 0x84], ebx
test bl, bl
js 0x512eca
mov dword [esi + 0x8c], edx
mov edi, dword [esi + 0xc]
cmp edi, edx
jbe 0x512ed2
mov ebx, dword [esi + 0x80]
test al, al
movzx eax, al
cmovs eax, dword [esi + 0x1c]
lea edx, [esi + 0x18]
cmovns ecx, edx
lea eax, [ecx + eax*2]
cmp ebx, eax
je 0x512cd4
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
call fcn.00503c60
mov ebx, dword [esi]
test al, al
jne 0x512cd4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512cc2
movzx eax, word [eax]
cmp ax, word [ebx]
jne 0x512cd4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512ccb
add eax, 2
mov dword [ecx + 0xc], eax
add ebx, 2
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
jmp 0x512c5b
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi]
jmp 0x512c9f
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi]
jmp 0x512cb7
bt dword [ebp + 0x18], 9
jae 0x512978
movzx eax, byte [esi + 0x23]
lea ecx, [esi + 0x18]
test al, al
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
jns 0x512cf6
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea ecx, [ecx + eax*2]
mov eax, edx
cmp ebx, ecx
je 0x51297e
jmp 0x51310a
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x5129e7
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x512a08
mov word [esi], ax
lea ebx, [esi + 0x38]
test dl, dl
js 0x512f64
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0xc], eax
movzx eax, word [esi]
cmp ax, word [ebx]
jne 0x512f80
jmp 0x512f6c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x512f5c
jmp 0x51301a
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x512b6b
lea ecx, [esi + 0x28]
test bl, bl
js 0x512fcf
cmp ax, word [ecx]
je 0x512fd7
jmp 0x512978
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.00511e10
add esp, 0xc
mov eax, dword [esi + 0x10]
jmp 0x5129aa
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x512b9b
test dl, dl
js 0x512ffd
jmp 0x513005
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
cmp eax, 1
lea eax, [esi + 0x38]
cmova ecx, eax
jmp case.default.0x5127db
test ecx, ecx
je 0x512e5c
xor edi, edi
inc edi
mov ecx, dword [esi + 4]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x512de2
mov eax, dword [ecx + 4]
cmp edi, eax
jae 0x512e5c
mov dword [esi + 0x230], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], edi
call fcn.00503c60
mov edi, dword [esi]
test al, al
jne 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512e45
movzx eax, word [eax]
mov edx, dword [esi + 4]
cmp byte [edx + 0xb], 0
mov ecx, edx
jns 0x512e25
mov ecx, dword [edx]
cmp ax, word [ecx + edi*2]
jne 0x51310a
inc edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x512e4e
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x512dd4
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi]
jmp 0x512e18
mov eax, dword [ecx]
mov dword [esi], edi
call dword [eax + 0x24]
mov edi, dword [esi]
jmp 0x512dd4
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x10]
mov dl, 1
mov dword [esi], edx
cmp ecx, eax
je 0x513116
movzx edx, byte [esi + 0x6b]
mov edi, edx
test dl, dl
jns 0x512e7b
mov edi, dword [esi + 0x64]
test edi, edi
je 0x513116
mov edi, eax
sub edi, ecx
cmp edi, 5
jl 0x513116
add eax, 0xfffffffc
cmp eax, ecx
jbe 0x5130a2
mov edx, eax
mov edi, ecx
mov ebx, dword [edi]
mov dword [esi + 0xc], ebx
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [esi + 0xc]
mov dword [edx], ebx
add edi, 4
add edx, 0xfffffffc
cmp edi, edx
jb 0x512e9f
mov dl, byte [esi + 0x6b]
test dl, dl
jns 0x5130ae
mov edi, dword [esi + 0x60]
jmp 0x5130b1
mov edx, dword [esi + 0x74]
jmp 0x512c44
lea ebx, [esi + 0x70]
cmp byte [esi + 0x84], 0
jns 0x512ee1
mov ebx, dword [esi + 0x70]
cmp dword [esi + 0x88], 0
mov edx, dword [esi + 0x8c]
je 0x512fc8
lea edx, [ebx + edx*2]
add edi, edi
mov dword [esi + 0xc], edx
sub edx, edi
mov edi, dword [esi + 0x80]
jmp 0x5127f0
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
jmp 0x512c13
movzx eax, word [eax]
jmp 0x512d1c
cmp eax, ebx
je 0x51305d
movzx eax, word [eax]
lea ecx, [esi + 0x38]
test dl, dl
jns 0x512f31
mov ecx, dword [esi + 0x38]
cmp ax, word [ecx]
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
jne 0x513027
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x51309b
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x512da8
movzx eax, word [eax]
jmp 0x512d69
mov ebx, dword [esi + 0x38]
jmp 0x512d2a
cmp edi, dword [esi + 0xc]
je 0x51306a
add edi, 2
mov dword [ecx + 0xc], edi
jmp 0x512da8
cmp edi, dword [esi + 0xc]
je 0x513077
movzx eax, word [edi]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x512f99
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
jne 0x51310a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x513081
add eax, 2
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test dl, dl
jns 0x513032
mov eax, dword [esi + 0x2c]
jmp 0x513035
mov ebx, dword [esi]
jmp 0x512c5b
mov ecx, dword [esi + 0x28]
jmp 0x512d74
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x51308e
add eax, 2
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test bl, bl
jns 0x513046
mov eax, dword [esi + 0x2c]
jmp 0x513049
mov eax, dword [esi + 0x3c]
jmp 0x512db5
movzx eax, dl
jmp 0x512db5
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x43]
jmp 0x512d1c
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x33]
jmp 0x512d69
mov ecx, dword [ebp + 0x20]
mov byte [ecx], 1
jmp 0x51297e
movzx eax, dl
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
cmp eax, 1
lea eax, [esi + 0x28]
jmp 0x512dc1
movzx eax, bl
mov edi, dword [esi + 8]
cmp eax, 1
mov eax, dword [esi + 4]
lea ecx, [esi + 0x28]
cmova eax, ecx
jmp 0x51297e
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x43]
jmp 0x512f27
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x43]
jmp 0x512da8
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x512f8c
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
jmp 0x512fb9
mov eax, dword [ecx]
call dword [eax + 0x24]
mov bl, byte [esi + 0x33]
jmp 0x512fee
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x51306f
test dl, dl
jns 0x5130f4
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x14], ecx
jmp 0x5130f4
lea edi, [esi + 0x60]
mov dword [esi + 0x14], edi
cmp eax, ecx
jbe 0x5130f4
test dl, dl
jns 0x5130c1
mov edi, dword [esi + 0x64]
jmp 0x5130c4
movzx edi, dl
add edi, dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx ebx, byte [edx]
mov edx, ebx
dec dl
cmp dl, 0x7d
ja 0x5130da
cmp dword [ecx], ebx
jne 0x51310a
mov edx, edi
mov ebx, dword [esi + 0x14]
sub edx, ebx
cmp edx, 1
lea edx, [ebx + 1]
cmovg ebx, edx
mov dword [esi + 0x14], ebx
add ecx, 4
cmp ecx, eax
jb 0x5130c7
mov ecx, dword [esi + 0x14]
movzx ecx, byte [ecx]
mov edx, ecx
dec dl
cmp dl, 0x7d
ja 0x513116
mov eax, dword [eax]
dec eax
cmp eax, ecx
jb 0x513116
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
mov dword [esi], 0
cmp byte [esi + 0x7b], 0
jns 0x513127
push dword [esi + 0x70]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x513138
push dword [esi + 0x28]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x513149
push dword [esi + 0x38]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x51315a
push dword [esi + 0x18]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x6b], 0
jns 0x51316b
push dword [esi + 0x60]
call fcn.004cf0d6
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x48], 0
test eax, eax
je 0x51318a
mov dword [esi + 0x230], 0
push eax
call dword [esi + 0x4c]
add esp, 4
mov eax, dword [esi + 0x228]
mov dword fs:[0], eax
mov eax, dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret