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

Disassembly:
push 0xffffffffffffffff
push 0x505a03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x84]
push edi
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x413b36
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.004160d0
mov edi, 0x53c7d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x53c7d8
lea ecx, [esp + 0x24]
call fcn.00416760
mov cl, byte [esp + 0x13]
mov esi, dword [ebx + 0x78]
mov byte [esp + 0x2c], cl
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x9c], 0
call fcn.004160d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.00416760
mov eax, dword [0x511cdc]
push 1
lea edx, [esp + 0x17]
push eax
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
mov byte [esp + 0x1f], 0x5c
call fcn.00415fd0
test eax, eax
jl 0x41373a
mov ecx, dword [0x511cdc]
inc eax
push ecx
lea edx, [esp + 0x50]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00415af0
mov ecx, dword [0x511cdc]
mov byte [esp + 0x98], 2
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004165c0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x9c], 1
call fcn.004160d0
jmp 0x413751
mov edx, dword [0x511cdc]
lea eax, [esp + 0x2c]
push edx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004165c0
mov edi, 0x53c7d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x53c7d4
lea ecx, [esp + 0x24]
call fcn.004166a0
mov ecx, dword [0x511cdc]
lea edx, [esp + 0x1c]
push ecx
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.00415dd0
mov eax, dword [0x511ca8]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004e55b7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [ebx + 0x3c]
call fcn.00411700
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x98], 3
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004166a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 1
call fcn.004e5549
mov edi, 0x550398
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x550398
lea ecx, [esp + 0x24]
call fcn.00416760
lea ecx, [esp + 0x2c]
call fcn.00416050
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
call fcn.00416050
mov eax, dword [esp + 0x30]
test eax, eax
je 0x413819
mov edx, dword [esp + 0x34]
add eax, edx
cmp esi, eax
je 0x413856
mov al, byte [esi]
cmp al, 0x41
mov byte [esp + 0x14], al
jl 0x41382b
cmp al, 0x5a
jle 0x413833
cmp al, 0x61
jl 0x413846
cmp al, 0x7a
jg 0x413846
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 1
call fcn.00415d00
inc esi
jmp 0x413802
push 0x5f
push 1
lea ecx, [esp + 0x24]
call fcn.00415d00
inc esi
jmp 0x413802
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
call fcn.004160d0
mov edi, 0x550398
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x550398
lea ecx, [esp + 0x44]
call fcn.00416760
mov eax, dword [0x5503c4]
mov byte [esp + 0x98], 4
mov ebx, 1
xor ebp, ebp
cmp ebx, 1
mov dword [esp + 0x14], ebp
jle 0x4138db
push ebx
push 0x53c7d0
lea edx, [esp + 0x64]
push 0x32
push edx
call fcn.004b5528
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x5c]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00416760
mov eax, dword [0x5503c4]
xor esi, esi
test eax, eax
je 0x4139bf
mov ecx, dword [0x5503c8]
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x4139bf
mov dl, byte [esp + 0x1c]
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.004160d0
mov eax, dword [0x511cdc]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
lea ecx, [esp + 0x58]
call fcn.00415dd0
cmp ebx, 1
mov byte [esp + 0x98], 5
jle 0x413963
mov edi, 0x53c7d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x53c7d4
lea ecx, [esp + 0x54]
call fcn.004166a0
mov edx, dword [0x511cdc]
lea eax, [esp + 0x3c]
push edx
push 0
push eax
lea ecx, [esp + 0x58]
call fcn.004165c0
mov eax, dword [0x5503c4]
mov eax, dword [esi + eax + 4]
test eax, eax
jne 0x413975
mov eax, 0x511cd8
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x413982
mov ecx, 0x511cd8
mov edx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.004b54f0
add esp, 0xc
test eax, eax
jne 0x41399e
mov dword [esp + 0x14], 1
inc ebx
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x9c], 4
call fcn.004160d0
mov eax, dword [0x5503c4]
inc ebp
add esi, 0x10
jmp 0x4138dd
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x413899
cmp ebx, 1
jle 0x413a56
mov edi, 0x53c7d4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
mov eax, dword [0x511cdc]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4139f9
call fcn.004cb865
xor ebx, ebx
cmp esi, ebx
jbe 0x413a3f
mov ecx, dword [esp + 0x24]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x20]
push ebp
call fcn.00416820
test al, al
je 0x413a3f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov esi, 0x53c7d4
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00416800
mov eax, dword [0x511cdc]
lea ecx, [esp + 0x3c]
push eax
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.004165c0
jmp 0x413a58
xor ebx, ebx
mov eax, dword [0x5503c8]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov ecx, 0x5503c0
call fcn.00416e30
mov ecx, dword [0x5503c4]
cmp ecx, ebx
jne 0x413a7d
xor eax, eax
jmp 0x413a87
mov eax, dword [0x5503c8]
sub eax, ecx
sar eax, 4
shl eax, 4
lea eax, [eax + ecx - 0x10]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x413a9a
mov eax, 0x511cd8
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
mov dword [esi + 0x84], eax
je 0x413ac8
mov al, byte [ecx - 1]
test al, al
je 0x413abe
cmp al, 0xff
je 0x413abe
dec al
mov byte [ecx - 1], al
jmp 0x413ac8
dec ecx
push ecx
call fcn.004e5c43
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
cmp ecx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x413af8
mov al, byte [ecx - 1]
test al, al
je 0x413aee
cmp al, 0xff
je 0x413aee
dec al
mov byte [ecx - 1], al
jmp 0x413af8
dec ecx
push ecx
call fcn.004e5c43
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x413b2e
mov al, byte [ecx - 1]
test al, al
je 0x413b24
cmp al, 0xff
je 0x413b24
dec al
mov byte [ecx - 1], al
mov eax, dword [esi + 0x84]
jmp 0x413b3c
dec ecx
push ecx
call fcn.004e5c43
add esp, 4
mov eax, dword [esi + 0x84]
jmp 0x413b3c
mov eax, dword [ebx + 0x84]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret