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

Disassembly:
push 0xffffffffffffffff
push 0x4c8768
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 1
mov edx, dword [esp + 0x8c]
cmp edx, 0x10
mov edi, dword [esp + 0x78]
mov dword [esp + 0x20], 0
jb 0x410b3b
test edi, edi
mov esi, edi
je 0x410a3e
cmp edx, 0x10
mov eax, edi
jae 0x410a22
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x410a3e
cmp edx, 0x10
mov eax, edi
jae 0x410a31
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x88]
add eax, ecx
cmp esi, eax
jbe 0x410a55
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
cmp edx, 0x10
lea eax, [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
jb 0x410b44
test edi, edi
mov esi, edi
je 0x410a90
cmp edx, 0x10
mov eax, edi
jae 0x410a7b
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x410a90
cmp edx, 0x10
mov eax, edi
jae 0x410a8a
lea eax, [esp + 0x78]
add eax, ecx
cmp esi, eax
jbe 0x410aa7
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x74]
mov ebp, eax
mov ebx, esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
cmp edx, 0x10
mov eax, edi
jae 0x410ac2
lea eax, [esp + 0x78]
lea esi, [ecx + eax]
test esi, esi
je 0x410ae9
cmp edx, 0x10
mov eax, edi
jae 0x410ad4
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x410ae9
cmp edx, 0x10
mov eax, edi
jae 0x410ae3
lea eax, [esp + 0x78]
add eax, ecx
cmp esi, eax
jbe 0x410af9
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x78]
cmp ebp, 0xfffffffe
je 0x410b1a
test ebp, ebp
je 0x410b0a
lea ecx, [esp + 0x74]
cmp ebp, ecx
je 0x410b1a
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x78]
cmp ebx, esi
je 0x410ed9
cmp ebp, 0xfffffffe
je 0x410b5e
test ebp, ebp
jne 0x410b30
call fcn.004a79fe
cmp dword [ebp + 0x18], 0x10
jb 0x410b4d
mov eax, dword [ebp + 4]
jmp 0x410b50
lea esi, [esp + 0x78]
jmp 0x410a17
lea esi, [esp + 0x78]
jmp 0x410a70
lea eax, [ebp + 4]
mov edx, dword [ebp + 0x14]
add edx, eax
cmp ebx, edx
jb 0x410b5e
call fcn.004a79fe
mov al, byte [ebx]
push 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x98]
mov byte [esp + 0x1c], al
push edx
xor eax, eax
call fcn.0040d190
test eax, eax
mov edx, dword [esp + 0x8c]
jge 0x410c47
cmp edx, 0x10
mov edi, dword [esp + 0x78]
mov eax, edi
jae 0x410b98
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x88]
lea esi, [eax + ecx]
test esi, esi
je 0x410bc6
cmp edx, 0x10
mov eax, edi
jae 0x410bb1
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x410bc6
cmp edx, 0x10
mov eax, edi
jae 0x410bc0
lea eax, [esp + 0x78]
add eax, ecx
cmp esi, eax
jbe 0x410bd2
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x74]
cmp eax, 0xfffffffe
mov edi, eax
mov dword [esp + 0x30], esi
je 0x410c1f
cmp edx, 0x10
mov ecx, dword [esp + 0x78]
jae 0x410bee
lea ecx, [esp + 0x78]
mov ebx, dword [esp + 0x88]
lea eax, [esi - 1]
add ecx, ebx
cmp eax, ecx
ja 0x410c0f
cmp edx, 0x10
mov ecx, dword [esp + 0x78]
jae 0x410c0b
lea ecx, [esp + 0x78]
cmp eax, ecx
jae 0x410c1b
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x1c]
add esi, 0xffffffff
cmp ebp, 0xfffffffe
je 0x410c3b
test ebp, ebp
je 0x410c2f
cmp ebp, edi
je 0x410c3b
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
cmp ebx, esi
jne 0x410e86
mov ebx, dword [esp + 0x1c]
cmp edx, 0x10
mov ecx, dword [esp + 0x78]
mov eax, ecx
jae 0x410c56
lea eax, [esp + 0x78]
mov edi, dword [esp + 0x88]
lea esi, [eax + edi]
test esi, esi
je 0x410c84
cmp edx, 0x10
mov eax, ecx
jae 0x410c6f
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x410c84
cmp edx, 0x10
mov eax, ecx
jae 0x410c7e
lea eax, [esp + 0x78]
add eax, edi
cmp esi, eax
jbe 0x410c90
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x74]
mov ecx, eax
cmp ecx, 0xfffffffe
mov edi, eax
mov dword [esp + 0x30], esi
je 0x410cdf
cmp edx, 0x10
mov ecx, dword [esp + 0x78]
jae 0x410cae
lea ecx, [esp + 0x78]
mov ebx, dword [esp + 0x88]
lea eax, [esi - 1]
add ecx, ebx
cmp eax, ecx
ja 0x410ccf
cmp edx, 0x10
mov ecx, dword [esp + 0x78]
jae 0x410ccb
lea ecx, [esp + 0x78]
cmp eax, ecx
jae 0x410cdb
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x1c]
add esi, 0xffffffff
cmp ebp, 0xfffffffe
je 0x410cfb
test ebp, ebp
je 0x410cef
cmp ebp, edi
je 0x410cfb
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
cmp ebx, esi
jne 0x410d5c
cmp ebp, 0xfffffffe
mov edi, ebp
mov dword [esp + 0x30], ebx
je 0x410d4b
test ebp, ebp
jne 0x410d13
call fcn.004a79fe
mov esi, dword [ebp + 0x18]
cmp esi, 0x10
lea eax, [ebp + 4]
jb 0x410d22
mov ecx, dword [eax]
jmp 0x410d24
mov ecx, eax
lea edx, [ebx + 1]
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp edx, ebx
ja 0x410d3b
cmp esi, 0x10
jb 0x410d37
mov eax, dword [eax]
cmp edx, eax
jae 0x410d40
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
lea eax, [esp + 0x38]
jmp 0x410d60
lea eax, [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, 0xfffffffe
mov esi, dword [eax + 4]
je 0x410d80
test ecx, ecx
je 0x410d74
cmp ecx, dword [esp + 0x24]
je 0x410d80
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
sub esi, dword [esp + 0x28]
cmp edx, 0x10
jb 0x410e1b
mov edi, dword [esp + 0x78]
test edi, edi
je 0x410dc0
cmp edx, 0x10
mov eax, dword [esp + 0x78]
jae 0x410da2
lea eax, [esp + 0x78]
cmp eax, edi
ja 0x410dc0
cmp edx, 0x10
mov eax, dword [esp + 0x78]
jae 0x410db3
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
add eax, edx
cmp edi, eax
jbe 0x410dc5
call fcn.004a79fe
mov eax, dword [esp + 0x24]
cmp eax, 0xfffffffe
je 0x410ddf
test eax, eax
je 0x410dda
lea ecx, [esp + 0x74]
cmp eax, ecx
je 0x410ddf
call fcn.004a79fe
mov ecx, dword [esp + 0x28]
push esi
sub ecx, edi
lea esi, [esp + 0x44]
lea edx, [esp + 0x78]
call fcn.0040d0c0
cmp ebp, 0xfffffffe
mov byte [esp + 0x6c], 2
mov esi, ebp
mov dword [esp + 0x30], ebx
je 0x410e42
test ebp, ebp
jne 0x410e0c
call fcn.004a79fe
mov edi, dword [ebp + 0x18]
cmp edi, 0x10
lea eax, [ebp + 4]
jb 0x410e24
mov ecx, dword [eax]
jmp 0x410e26
lea edi, [esp + 0x78]
jmp 0x410d95
mov ecx, eax
lea edx, [ebx + 1]
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp edx, ebx
ja 0x410e3d
cmp edi, 0x10
jb 0x410e39
mov eax, dword [eax]
cmp edx, eax
jae 0x410e42
call fcn.004a79fe
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x24], esi
call fcn.00411c20
mov eax, 1
add dword [esp + 0x20], eax
mov byte [esp + 0x6c], al
cmp dword [esp + 0x58], 0x10
jb 0x410e7f
mov edx, dword [esp + 0x44]
push edx
call fcn.00488fd0
add esp, 4
mov edx, dword [esp + 0x8c]
cmp ebp, 0xfffffffe
je 0x410ec0
test ebp, ebp
jne 0x410e9b
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
cmp dword [ebp + 0x18], 0x10
jb 0x410ea6
mov eax, dword [ebp + 4]
jmp 0x410ea9
lea eax, [ebp + 4]
mov ecx, dword [ebp + 0x14]
add ecx, eax
cmp dword [esp + 0x1c], ecx
jb 0x410ec0
call fcn.004a79fe
mov edx, dword [esp + 0x8c]
add dword [esp + 0x1c], 1
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
jmp 0x410ab7
cmp edx, 0x10
jb 0x410ee7
push edi
call fcn.00488fd0
add esp, 4
cmp dword [esp + 0xa8], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x410f1c
mov edx, dword [esp + 0x94]
push edx
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004a74b2
add esp, 0x5c
ret