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

Disassembly:
sub esp, 0x98
mov eax, dword [0x100fc018]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
xor esi, esi
mov ebx, edx
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x1006233e
mov ecx, str.:memory:
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10062330
test dl, dl
je 0x1006232c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10062330
add eax, 2
add ecx, 2
test dl, dl
jne 0x10062310
xor eax, eax
jmp 0x10062335
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x1006233e
mov esi, 1
mov ebp, dword [ebx]
push 0x2c
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebp
call fcn.100536b0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x100623c9
push 0x2c
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [edi + 8], 0
mov dword [edi], ebx
mov dword [edi + 0x1c], edi
mov dword [edi + 0x20], 1
test esi, esi
jne 0x100624e3
cmp dword [esp + 0x18], esi
je 0x100624e3
mov edx, dword [esp + 0x18]
cmp byte [edx], 0
je 0x100624e3
test dword [esp + 0xb4], 0x20000
je 0x100624e3
mov esi, dword [ebp + 8]
inc esi
push esi
call fcn.100536b0
mov ebx, eax
add esp, 4
mov byte [edi + 9], 1
test ebx, ebx
jne 0x100623d3
push edi
call fcn.100539b0
add esp, 4
mov eax, 7
jmp 0x10062752
mov eax, dword [esp + 0x18]
push ebx
push esi
push eax
mov byte [ebx], 0
mov ecx, dword [ebp + 0x24]
push ebp
call ecx
add esp, 0x10
cmp dword [0x100fc4fc], 0
jne 0x100623f3
xor eax, eax
jmp 0x100623fe
push 4
call dword [0x100fc538]
add esp, 4
push eax
mov dword [esp + 0x2c], eax
call fcn.100530e0
add esp, 4
cmp dword [0x100fc4fc], 0
jne 0x1006241c
xor ebp, ebp
mov dword [esp + 0x24], ebp
jmp 0x1006242d
push 2
call dword [0x100fc538]
add esp, 4
mov ebp, eax
mov dword [esp + 0x24], eax
push ebp
call fcn.100530e0
mov eax, dword [0x100ff0d4]
add esp, 4
mov esi, eax
test eax, eax
je 0x100624c4
mov ebp, dword [esi]
mov ecx, dword [ebp + 0x90]
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10062470
test dl, dl
je 0x1006246c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10062470
add eax, 2
add ecx, 2
test dl, dl
jne 0x10062450
xor eax, eax
jmp 0x10062475
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10062482
mov edx, dword [esp + 0x2c]
cmp dword [ebp], edx
je 0x1006248b
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x10062445
jmp 0x100624c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
sub eax, 1
js 0x100624ba
mov ecx, dword [ecx + 8]
mov edx, eax
shl edx, 4
lea ecx, [ecx + edx + 4]
mov edx, dword [ecx]
test edx, edx
je 0x100624b2
cmp dword [edx + 4], esi
je 0x100625d3
dec eax
sub ecx, 0x10
test eax, eax
jge 0x100624a3
mov dword [edi + 4], esi
inc dword [esi + 0x40]
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x100624d2
push ebp
call dword [0x100fc548]
add esp, 4
push ebx
call fcn.100539b0
add esp, 4
test esi, esi
jne 0x10062689
push 0x58
call fcn.100536b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10062609
push 0x58
push 0
push ebp
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xbc]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebp
call fcn.1005ce70
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10062710
mov eax, dword [ebp]
push eax
lea esi, [esp + 0x3c]
call fcn.1005c6f0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10062710
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [eax + 0x98], 0x10062290
mov dword [eax + 0x9c], ebp
mov dword [edi + 4], ebp
mov edi, dword [ebp]
xor ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov dl, byte [edi + 0xc]
mov byte [ebp + 0x10], dl
movzx eax, byte [esp + 0x49]
movzx edx, byte [esp + 0x48]
shl eax, 8
or eax, edx
shl eax, 8
lea esi, [ebp + 0x20]
mov dword [esi], eax
cmp eax, 0x200
jb 0x10062616
cmp eax, 0x10000
ja 0x10062616
lea edx, [eax - 1]
test eax, edx
jne 0x10062616
mov bl, byte [esp + 0x4c]
lea ecx, [esp + 0x6c]
mov byte [ebp + 0x11], 1
call fcn.100566a0
test eax, eax
setne al
lea ecx, [esp + 0x78]
mov byte [ebp + 0x14], al
call fcn.100566a0
test eax, eax
setne cl
mov byte [ebp + 0x15], cl
jmp 0x1006262c
mov edx, dword [esp + 0x24]
push edx
call fcn.10053120
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.10053120
add esp, 4
push ebx
call fcn.100539b0
add esp, 4
push edi
call fcn.100539b0
add esp, 4
mov eax, 0x13
jmp 0x10062752
mov dword [esp + 0x14], 7
jmp 0x10062720
mov dword [esi], ecx
cmp dword [esp + 0x18], ecx
je 0x1006262a
cmp dword [esp + 0x34], ecx
jne 0x1006262a
mov byte [ebp + 0x14], cl
mov byte [ebp + 0x15], cl
xor bl, bl
movzx ebx, bl
push ebx
push esi
call fcn.1005c5d0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1006270c
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
sub edx, ebx
mov dword [ebp + 0x24], edx
cmp byte [eax + 9], 0
je 0x10062689
mov dword [ebp + 0x40], 1
cmp dword [0x100fc4fc], 0
jne 0x100626d1
xor esi, esi
push esi
call fcn.100530e0
mov edx, dword [0x100ff0d4]
add esp, 4
push esi
mov dword [ebp + 0x44], edx
mov dword [0x100ff0d4], ebp
call fcn.10053120
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp byte [ebx + 9], 0
je 0x100627c3
mov esi, dword [esp + 0x20]
xor edx, edx
cmp dword [esi + 4], edx
jle 0x100627c3
mov ecx, dword [esi + 8]
add ecx, 4
lea esp, [esp]
mov eax, dword [ecx]
test eax, eax
je 0x100626c0
cmp byte [eax + 9], 0
jne 0x1006276b
inc edx
add ecx, 0x10
cmp edx, dword [esi + 4]
jl 0x100626b0
mov edx, dword [esp + 0x30]
mov dword [edx], ebx
jmp 0x1006273c
push 2
call dword [0x100fc538]
add esp, 4
cmp dword [0x100fc4fc], 0
mov esi, eax
je 0x10062668
push 0
call dword [0x100fc538]
add esp, 4
mov dword [ebp + 0x38], eax
test eax, eax
jne 0x10062668
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 7
mov byte [ecx + 0x1e], al
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp]
test eax, eax
je 0x10062720
push eax
call fcn.1005c7e0
add esp, 4
push ebp
call fcn.100539b0
add esp, 4
push edi
call fcn.100539b0
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006274e
push eax
call dword [0x100fc548]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ba2f9
add esp, 0x98
ret
cmp dword [eax + 0x18], 0
je 0x1006277a
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x18], 0
jne 0x10062771
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x10062797
mov edx, dword [esp + 0x30]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0
mov dword [eax + 0x18], ebx
mov dword [edx], ebx
jmp 0x1006273c
cmp dword [eax + 0x14], 0
je 0x100627b0
lea ecx, [ecx]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 4], edx
jae 0x100627b0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x100627a0
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
test ecx, ecx
je 0x100627c0
mov dword [ecx + 0x18], ebx
mov dword [eax + 0x14], ebx
mov edx, dword [esp + 0x30]
mov dword [edx], ebx
jmp 0x1006273c