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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6922ea
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x240]
push edi
mov eax, dword [ebp + 0x100]
mov ebx, 2
xor edi, edi
cmp esi, ebx
mov byte [ebp + 0xc8], 0
mov dword [ebp + 0xfc], eax
mov dword [ebp + 0x100], esi
je 0x535931
cmp esi, 4
jne 0x535937
mov dword [ebp + 0xfc], edi
mov ecx, ebp
call fcn.005369b0
cmp esi, edi
jne 0x535af6
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call fcn.004031c0
mov eax, dword [ebp + 0x10c]
mov dword [esp + 0x23c], edi
cmp eax, edi
je 0x53598b
lea edx, [esp + 0x24]
push edx
push 0x2c2c
call fcn.00615080
mov ecx, dword [ebp + 0x10c]
add esp, 8
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
cmp dword [ebp + 0xb8], edi
jne 0x5359c2
lea eax, [esp + 0x24]
push eax
push 0x2c61
call fcn.00615080
mov ecx, dword [ebp + 0x110]
add esp, 8
cmp ecx, edi
je 0x535a93
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x78]
jmp 0x535a93
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push 0x2c60
call fcn.00615080
mov eax, dword [ebp + 0xb4]
xor esi, esi
add esp, 8
cmp eax, esi
jne 0x5359f2
mov eax, 0x6a3560
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jne 0x5359ff
mov ecx, 0x6a3560
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x100
push edx
call fcn.00675394
mov eax, dword [ebp + 0x110]
add esp, 0x10
cmp eax, esi
je 0x535a93
mov al, byte [esp + 0x13]
lea edi, [esp + 0x34]
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], esi
call fcn.004083a0
mov ecx, dword [ebp + 0x110]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x240], 1
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], 0
cmp eax, esi
je 0x535a93
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x535a8a
cmp al, 0xff
je 0x535a8a
dec al
mov byte [ecx], al
jmp 0x535a93
push ecx
call fcn.006713a0
add esp, 4
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x535ad7
lea ecx, [esp + 0x24]
lea edx, [edi + 0x2c48]
push ecx
push edx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
mov ecx, dword [esi]
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x535ad7
mov edx, dword [ecx]
push 1
call dword [edx + 0x3c]
inc edi
add esi, 4
cmp edi, 3
jl 0x535a9b
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, 1
jne 0x535e2e
mov al, byte [esp + 0x13]
mov dword [esp + 0x28], edi
mov byte [esp + 0x24], al
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov eax, dword [ebp + 0xe4]
mov dword [esp + 0x23c], ebx
cmp eax, esi
jne 0x535bee
cmp dword [ebp + 0x104], edi
je 0x535dcb
mov esi, dword [ebp + 0xd4]
add esi, 0x18
cmp esi, 0x18
jle 0x535b45
sub esi, 0x18
lea ecx, [esp + 0x24]
push ecx
push 0x2c2d
call fcn.00615080
mov ecx, dword [esp + 0x30]
add esp, 8
test ecx, ecx
jne 0x535b64
mov ecx, 0x6a3560
mov eax, dword [ebp + 0xd8]
mov edx, dword [ebp + 0xd4]
push eax
push esi
push eax
mov eax, dword [ebp + 0xcc]
push edx
mov edx, dword [ebp + 0xd0]
push eax
push edx
push ecx
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.00675394
mov cl, byte [esp + 0x37]
xor eax, eax
mov byte [esp + 0x38], cl
lea edi, [esp + 0x58]
or ecx, 0xffffffff
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004083a0
mov ecx, dword [ebp + 0x104]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x240], 3
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], bl
jmp 0x535cb7
cmp eax, ebx
jne 0x535cde
cmp dword [ebp + 0x104], edi
je 0x535dcb
mov esi, dword [ebp + 0xd4]
add esi, 0x18
cmp esi, 0x18
jle 0x535c13
sub esi, 0x18
lea eax, [esp + 0x24]
push eax
push 0x2c2e
call fcn.00615080
mov ecx, dword [esp + 0x30]
add esp, 8
test ecx, ecx
jne 0x535c32
mov ecx, 0x6a3560
mov eax, dword [ebp + 0xd8]
mov edx, dword [ebp + 0xd4]
push eax
push esi
push eax
mov eax, dword [ebp + 0xcc]
push edx
mov edx, dword [ebp + 0xd0]
push eax
push edx
push ecx
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.00675394
mov cl, byte [esp + 0x37]
xor eax, eax
mov byte [esp + 0x38], cl
lea edi, [esp + 0x58]
or ecx, 0xffffffff
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004083a0
mov ecx, dword [ebp + 0x104]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x240], 4
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], bl
test eax, eax
je 0x535dcb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x535dc2
cmp al, 0xff
je 0x535dc2
dec al
mov byte [ecx], al
jmp 0x535dcb
cmp eax, 3
jne 0x535dcb
mov eax, dword [ebp + 0x104]
test eax, eax
je 0x535dcb
mov esi, dword [ebp + 0xd4]
add esi, 0x18
cmp esi, 0x18
jle 0x535d06
sub esi, 0x18
lea eax, [esp + 0x24]
push eax
push 0x2c86
call fcn.00615080
mov ecx, dword [esp + 0x30]
add esp, 8
test ecx, ecx
jne 0x535d25
mov ecx, 0x6a3560
mov eax, dword [ebp + 0xd8]
mov edx, dword [ebp + 0xd4]
push eax
push esi
push eax
mov eax, dword [ebp + 0xcc]
push edx
mov edx, dword [ebp + 0xd0]
push eax
push edx
push ecx
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.00675394
mov cl, byte [esp + 0x37]
xor eax, eax
mov byte [esp + 0x38], cl
lea edi, [esp + 0x58]
or ecx, 0xffffffff
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004083a0
mov ecx, dword [ebp + 0x104]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x240], 5
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], bl
test eax, eax
je 0x535dcb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x535dc2
cmp al, 0xff
je 0x535dc2
dec al
mov byte [ecx], al
jmp 0x535dcb
push ecx
call fcn.006713a0
add esp, 4
mov eax, dword [ebp + 0x138]
test eax, eax
je 0x535e18
lea eax, [esp + 0x24]
push eax
push 0x2c4b
call fcn.00615080
mov ecx, dword [ebp + 0x138]
add esp, 8
lea eax, [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [ebp + 0x138]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ebp, dword [ebp + 0x124]
test ebp, ebp
je 0x535e18
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, ebx
jne 0x535ee4
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x104]
mov dword [esp + 0x23c], 6
cmp eax, edi
je 0x535e81
lea edx, [esp + 0x14]
push edx
push 0x2c2f
call fcn.00615080
mov ecx, dword [ebp + 0x104]
add esp, 8
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x535ec5
lea eax, [esp + 0x14]
lea ecx, [edi + 0x2c4c]
push eax
push ecx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [esi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x535ec5
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
inc edi
add esi, 4
cmp edi, 5
jl 0x535e89
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, 3
jne 0x535f9b
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x104]
mov dword [esp + 0x23c], 7
cmp eax, edi
je 0x535f38
lea edx, [esp + 0x14]
push edx
push 0x2c33
call fcn.00615080
mov ecx, dword [ebp + 0x104]
add esp, 8
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x535f7c
lea eax, [esp + 0x14]
lea ecx, [edi + 0x2c51]
push eax
push ecx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [esi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x535f7c
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
inc edi
add esi, 4
cmp edi, 3
jl 0x535f40
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, 4
jne 0x536052
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x104]
mov dword [esp + 0x23c], 8
cmp eax, edi
je 0x535fef
lea edx, [esp + 0x14]
push edx
push 0x2c34
call fcn.00615080
mov ecx, dword [ebp + 0x104]
add esp, 8
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x536033
lea eax, [esp + 0x14]
lea ecx, [edi + 0x2c54]
push eax
push ecx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [esi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x536033
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
inc edi
add esi, 4
cmp edi, 4
jl 0x535ff7
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, 5
jne 0x536109
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x108]
mov dword [esp + 0x23c], 9
cmp eax, edi
je 0x5360a6
lea edx, [esp + 0x14]
push edx
push 0x2c35
call fcn.00615080
mov ecx, dword [ebp + 0x108]
add esp, 8
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x5360ea
lea eax, [esp + 0x14]
lea ecx, [edi + 0x2c58]
push eax
push ecx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [esi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x5360ea
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
inc edi
add esi, 4
cmp edi, 3
jl 0x5360ae
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
jmp 0x5361cf
cmp esi, 6
jne 0x5361f2
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x10c]
mov dword [esp + 0x23c], 0xa
cmp eax, edi
je 0x53615d
lea edx, [esp + 0x14]
push edx
push 0x2c36
call fcn.00615080
mov ecx, dword [ebp + 0x10c]
add esp, 8
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
mov ecx, dword [ebp + 0x110]
cmp ecx, edi
je 0x536173
mov eax, dword [ecx]
lea edx, [ebp + 0xec]
push edx
call dword [eax + 0x78]
cmp dword [ebp + 0x138], edi
je 0x5361be
lea eax, [esp + 0x14]
push eax
push 0x2c5b
call fcn.00615080
mov ecx, dword [ebp + 0x138]
add esp, 8
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x78]
mov ecx, dword [ebp + 0x138]
push 1
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ebp, dword [ebp + 0x124]
cmp ebp, edi
je 0x5361be
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
cmp ecx, edi
je 0x536459
mov al, byte [ecx - 1]
test al, al
je 0x53644f
cmp al, 0xff
je 0x53644f
dec al
mov byte [ecx - 1], al
jmp 0x536459
cmp esi, 7
jne 0x536459
mov cl, byte [esp + 0x13]
mov dword [esp + 0x28], edi
mov byte [esp + 0x24], cl
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov eax, dword [ebp + 0x10c]
mov dword [esp + 0x23c], 0xb
cmp eax, edi
je 0x5362e8
lea edx, [esp + 0x24]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x34]
push edx
push 0x2c37
rep stosd dword es:[edi], eax
call fcn.00615080
mov eax, dword [esp + 0x30]
xor esi, esi
add esp, 8
cmp eax, esi
jne 0x536256
mov eax, 0x6a3560
mov ecx, dword [ebp + 0xc0]
lea edx, [esp + 0x34]
push ecx
push eax
push 0x100
push edx
call fcn.00675394
mov al, byte [esp + 0x23]
lea edi, [esp + 0x44]
mov byte [esp + 0x24], al
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], esi
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.004083a0
mov ecx, dword [ebp + 0x10c]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x240], 0xc
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], 0xb
cmp eax, esi
je 0x5362ea
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5362dd
cmp al, 0xff
je 0x5362dd
dec al
mov byte [ecx], al
jmp 0x5362ea
push ecx
call fcn.006713a0
add esp, 4
jmp 0x5362ea
xor esi, esi
cmp dword [ebp + 0x110], esi
je 0x5363dd
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push 0x2c38
call fcn.00615080
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
jne 0x536322
mov eax, 0x6a3560
mov edx, dword [ebp + 0xc4]
push edx
push eax
lea eax, [esp + 0x3c]
push 0x100
push eax
call fcn.00675394
mov cl, byte [esp + 0x23]
lea edi, [esp + 0x44]
mov byte [esp + 0x24], cl
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00403350
test al, al
je 0x536398
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov ecx, dword [ebp + 0x110]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x240], 0xd
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x23c], 0xb
cmp eax, esi
je 0x5363dd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5363d4
cmp al, 0xff
je 0x5363d4
dec al
mov byte [ecx], al
jmp 0x5363dd
push ecx
call fcn.006713a0
add esp, 4
xor edi, edi
lea esi, [ebp + 0x138]
cmp dword [esi], 0
je 0x536421
lea ecx, [esp + 0x24]
lea edx, [edi + 0x2c5c]
push ecx
push edx
call fcn.00615080
mov ecx, dword [esi]
add esp, 8
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
mov ecx, dword [esi]
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esi - 0x14]
test ecx, ecx
je 0x536421
mov edx, dword [ecx]
push 1
call dword [edx + 0x3c]
inc edi
add esi, 4
cmp edi, 3
jl 0x5363e5
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x23c], 0xffffffff
test ecx, ecx
je 0x536459
mov al, byte [ecx - 1]
test al, al
je 0x53644f
cmp al, 0xff
je 0x53644f
dec al
mov byte [ecx - 1], al
jmp 0x536459
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 4