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

Disassembly:
sub esp, 0x98
mov eax, dword [0x100cc020]
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 0x1004930e
mov ecx, str.:memory:
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10049300
test dl, dl
je 0x100492fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10049300
add eax, 2
add ecx, 2
test dl, dl
jne 0x100492e0
xor eax, eax
jmp 0x10049305
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x1004930e
mov esi, 1
mov ebp, dword [ebx]
push 0x2c
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebp
call fcn.1003a650
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10049399
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 0x100494b3
cmp dword [esp + 0x18], esi
je 0x100494b3
mov edx, dword [esp + 0x18]
cmp byte [edx], 0
je 0x100494b3
test dword [esp + 0xb4], 0x20000
je 0x100494b3
mov esi, dword [ebp + 8]
inc esi
push esi
call fcn.1003a650
mov ebx, eax
add esp, 4
mov byte [edi + 9], 1
test ebx, ebx
jne 0x100493a3
push edi
call fcn.1003a950
add esp, 4
mov eax, 7
jmp 0x10049722
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 [0x100cc3cc], 0
jne 0x100493c3
xor eax, eax
jmp 0x100493ce
push 4
call dword [0x100cc408]
add esp, 4
push eax
mov dword [esp + 0x2c], eax
call fcn.1003a070
add esp, 4
cmp dword [0x100cc3cc], 0
jne 0x100493ec
xor ebp, ebp
mov dword [esp + 0x24], ebp
jmp 0x100493fd
push 2
call dword [0x100cc408]
add esp, 4
mov ebp, eax
mov dword [esp + 0x24], eax
push ebp
call fcn.1003a070
mov eax, dword [0x100ce88c]
add esp, 4
mov esi, eax
test eax, eax
je 0x10049494
mov ebp, dword [esi]
mov ecx, dword [ebp + 0x90]
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10049440
test dl, dl
je 0x1004943c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10049440
add eax, 2
add ecx, 2
test dl, dl
jne 0x10049420
xor eax, eax
jmp 0x10049445
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10049452
mov edx, dword [esp + 0x2c]
cmp dword [ebp], edx
je 0x1004945b
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x10049415
jmp 0x10049490
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
sub eax, 1
js 0x1004948a
mov ecx, dword [ecx + 8]
mov edx, eax
shl edx, 4
lea ecx, [ecx + edx + 4]
mov edx, dword [ecx]
test edx, edx
je 0x10049482
cmp dword [edx + 4], esi
je 0x100495a3
dec eax
sub ecx, 0x10
test eax, eax
jge 0x10049473
mov dword [edi + 4], esi
inc dword [esi + 0x40]
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x100494a2
push ebp
call dword [0x100cc418]
add esp, 4
push ebx
call fcn.1003a950
add esp, 4
test esi, esi
jne 0x10049659
push 0x58
call fcn.1003a650
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x100495d9
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.10043e40
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100496e0
mov eax, dword [ebp]
push eax
lea esi, [esp + 0x3c]
call fcn.100436b0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100496e0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [eax + 0x98], 0x10049260
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 0x100495e6
cmp eax, 0x10000
ja 0x100495e6
lea edx, [eax - 1]
test eax, edx
jne 0x100495e6
mov bl, byte [esp + 0x4c]
lea ecx, [esp + 0x6c]
mov byte [ebp + 0x11], 1
call fcn.1003d640
test eax, eax
setne al
lea ecx, [esp + 0x78]
mov byte [ebp + 0x14], al
call fcn.1003d640
test eax, eax
setne cl
mov byte [ebp + 0x15], cl
jmp 0x100495fc
mov edx, dword [esp + 0x24]
push edx
call fcn.1003a0b0
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.1003a0b0
add esp, 4
push ebx
call fcn.1003a950
add esp, 4
push edi
call fcn.1003a950
add esp, 4
mov eax, 0x13
jmp 0x10049722
mov dword [esp + 0x14], 7
jmp 0x100496f0
mov dword [esi], ecx
cmp dword [esp + 0x18], ecx
je 0x100495fa
cmp dword [esp + 0x34], ecx
jne 0x100495fa
mov byte [ebp + 0x14], cl
mov byte [ebp + 0x15], cl
xor bl, bl
movzx ebx, bl
push ebx
push esi
call fcn.10043590
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100496dc
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
sub edx, ebx
mov dword [ebp + 0x24], edx
cmp byte [eax + 9], 0
je 0x10049659
mov dword [ebp + 0x40], 1
cmp dword [0x100cc3cc], 0
jne 0x100496a1
xor esi, esi
push esi
call fcn.1003a070
mov edx, dword [0x100ce88c]
add esp, 4
push esi
mov dword [ebp + 0x44], edx
mov dword [0x100ce88c], ebp
call fcn.1003a0b0
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp byte [ebx + 9], 0
je 0x10049793
mov esi, dword [esp + 0x20]
xor edx, edx
cmp dword [esi + 4], edx
jle 0x10049793
mov ecx, dword [esi + 8]
add ecx, 4
lea esp, [esp]
mov eax, dword [ecx]
test eax, eax
je 0x10049690
cmp byte [eax + 9], 0
jne 0x1004973b
inc edx
add ecx, 0x10
cmp edx, dword [esi + 4]
jl 0x10049680
mov edx, dword [esp + 0x30]
mov dword [edx], ebx
jmp 0x1004970c
push 2
call dword [0x100cc408]
add esp, 4
cmp dword [0x100cc3cc], 0
mov esi, eax
je 0x10049638
push 0
call dword [0x100cc408]
add esp, 4
mov dword [ebp + 0x38], eax
test eax, eax
jne 0x10049638
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 0x100496f0
push eax
call fcn.100437a0
add esp, 4
push ebp
call fcn.1003a950
add esp, 4
push edi
call fcn.1003a950
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004971e
push eax
call dword [0x100cc418]
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.1009ecb4
add esp, 0x98
ret
cmp dword [eax + 0x18], 0
je 0x1004974a
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x18], 0
jne 0x10049741
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x10049767
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 0x1004970c
cmp dword [eax + 0x14], 0
je 0x10049780
lea ecx, [ecx]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 4], edx
jae 0x10049780
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10049770
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
test ecx, ecx
je 0x10049790
mov dword [ecx + 0x18], ebx
mov dword [eax + 0x14], ebx
mov edx, dword [esp + 0x30]
mov dword [edx], ebx
jmp 0x1004970c