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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 0x2a4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebx + 8], edi
mov dword [ebx], eax
cmp esi, 3
jle 0x449987
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 8], 4
jne 0x449987
mov edx, dword [eax]
mov dword [esp + 0x38], edx
jmp 0x44998b
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
cmp esi, 2
jle 0x4499ac
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
lea ecx, [esp + 0xb0]
call fcn.00450030
mov dword [esp + 0x40], eax
jmp 0x4499b4
mov dword [esp + 0x40], 0x4e1a4c
mov dword [esp + 0x2c], edi
mov dword [ebx + 4], edi
cmp esi, 4
jle 0x4499db
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x10]
cmp dword [ecx + 8], 3
je 0x4499db
push edi
call fcn.0044fef0
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x4499e3
mov dword [esp + 0x18], 0xffffffff
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], edi
je 0x449a25
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push esi
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.004c34f0
add esp, 0x20
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x449b55
mov eax, dword [ebp + 0x1c]
test esi, esi
je 0x449ef2
cmp dword [ebp + 0x20], eax
jge 0x449ef2
cmp dword [esp + 0x18], 0
je 0x449ef2
movzx eax, word [edi]
mov ecx, eax
mov dword [esp + 0x28], ecx
add ecx, 0x2800
mov edx, 0x3ff
xor esi, esi
cmp cx, dx
ja 0x449ab1
movzx ecx, word [edi + 2]
mov edx, 0xdc00
cmp cx, dx
jb 0x449ab1
mov edx, 0xdfff
cmp cx, dx
ja 0x449ab1
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov dx, word [esp + 0x28]
mov word [ecx + eax*2], dx
mov ecx, 1
add dword [ebx + 4], ecx
mov edx, dword [ebx + 0xc]
mov di, word [edi + 2]
mov eax, dword [ebx + 4]
mov word [edx + eax*2], di
add dword [ebx + 4], ecx
add dword [ebp + 0x20], 2
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
lea edi, [ecx + edx*2]
jmp 0x4499e8
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov word [edx + ecx*2], ax
mov eax, 1
add dword [ebx + 4], eax
add dword [ebp + 0x20], eax
cmp word [edi], 0xd
mov edx, dword [ebx + 4]
jne 0x449ee4
cmp word [edi + 2], 0xa
jne 0x449ee4
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x449ee4
mov eax, dword [ecx]
cmp eax, 0x50435245
je 0x449b3d
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
test eax, eax
jne 0x449ee4
mov eax, dword [esp + 0x4c]
test eax, 0x400000
je 0x449ee4
mov eax, dword [ebx + 0xc]
mov ecx, 0xa
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0x18]
mov eax, 1
add dword [ebx + 4], eax
add dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x20]
lea edi, [ecx + edx*2]
jmp 0x4499e8
test byte [ecx + 0xc], 2
je 0x449ee4
mov eax, dword [ecx + 8]
and eax, 0x27fc7a7f
mov dword [esp + 0x4c], eax
jmp 0x449b0d
mov esi, dword [esp + 0x3c]
test esi, esi
js 0x449f74
mov eax, 1
add dword [esp + 0x20], eax
sub dword [esp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, eax
sub eax, edi
add eax, dword [ebp + 0x18]
mov dword [esp + 0x44], edx
sar eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
nop
cmp dword [esp + 0x1c], 0
je 0x449c22
mov eax, dword [esp + 0x14]
lea ecx, [eax + 3]
cmp ecx, dword [esp + 0x2c]
jle 0x449bed
mov edx, dword [esp + 0x44]
push edx
lea ecx, [eax + 2]
push ecx
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub eax, edx
push ecx
mov ecx, dword [esp + 0x30]
cdq
idiv ecx
push ecx
mov edi, eax
call fcn.004a7d90
lea edx, [eax + eax]
add esp, 0x14
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
push edx
push eax
call fcn.004c61a7
add esp, 8
test eax, eax
je 0x449fc9
mov dword [ebx + 0xc], eax
mov esi, dword [esp + 0x24]
test esi, esi
je 0x449c13
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 4]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
lea edx, [ecx + eax*2]
push edx
call fcn.004cd6c0
add esp, 0xc
add dword [ebx + 4], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + eax*2]
mov dword [esp + 0x10], edx
jmp 0x449c2d
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
movzx eax, word [esi]
mov edx, esi
test edi, edi
je 0x449c6d
test ax, ax
je 0x449c62
cmp ax, 0x24
je 0x449c5e
add esi, 2
mov word [ecx], ax
movzx eax, word [esi]
add ecx, 2
test ax, ax
jne 0x449c47
mov dword [esp + 0x10], ecx
mov eax, esi
sub eax, edx
sar eax, 1
add dword [ebx + 4], eax
jmp 0x449c8e
test ax, ax
je 0x449c84
cmp ax, 0x24
je 0x449c84
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x449c72
mov ecx, esi
sub ecx, edx
sar ecx, 1
add dword [esp + 0x14], ecx
cmp word [esi], 0
je 0x449eb7
movzx eax, word [esi + 2]
xor edi, edi
mov dword [esp + 0x48], 0
test ax, ax
je 0x449cec
mov ebx, eax
test ebx, 0xffffff80
jne 0x449cca
push 2
push ebx
call fcn.004c613e
add esp, 8
test eax, eax
je 0x449cca
and ebx, 0xffdf
mov eax, ebx
movzx ecx, ax
cmp ecx, 0x4c
je 0x449cdc
add ecx, 0xffffffac
cmp ecx, 1
ja 0x449cec
movzx edx, ax
movzx eax, word [esi + 4]
mov dword [esp + 0x48], edx
mov edi, 1
movzx ecx, ax
mov ebx, SysReAllocString
test ecx, ecx
je 0x449d22
cmp ecx, 0x24
je 0x449dd6
cmp ecx, 0x7b
je 0x449d4e
add eax, 0xffffffd0
cmp ax, 9
ja 0x449d22
lea ebx, [ecx - 0x30]
lea esi, [esi + edi*2 + 2]
cmp ebx, 0x80000000
jne 0x449ded
cmp dword [esp + 0x1c], 0
je 0x449dde
mov cx, word [esi]
mov eax, dword [esp + 0x10]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
inc dword [eax + 4]
add esi, 2
mov ebx, eax
jmp 0x449c31
lea eax, [esi + edi*2 + 4]
push 0x7d
push eax
mov dword [esp + 0x3c], eax
call fcn.004c5cc1
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x449d22
mov edi, eax
sub edi, dword [esp + 0x34]
sar edi, 1
je 0x449d22
cmp edi, 0x21
jae 0x449dcd
mov eax, dword [esp + 0x34]
push edi
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.004c67b5
add esp, 0xc
xor edx, edx
push edx
push 1
push edx
push 1
lea eax, [esp + 0x78]
mov word [esp + edi*2 + 0x78], dx
call fcn.004a7050
add esp, 0x10
test eax, eax
lea eax, [esp + 0x68]
je 0x449dc0
push eax
call fcn.004c6186
mov esi, dword [esp + 0x34]
add esp, 4
mov ebx, eax
jmp 0x449d16
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
call fcn.004c4560
mov ebx, eax
mov esi, dword [esp + 0x30]
jmp 0x449d16
add esi, 2
jmp 0x449d22
inc dword [esp + 0x14]
mov ebx, dword [ebp + 8]
add esi, 2
jmp 0x449c31
test ebx, ebx
js 0x449eac
cmp ebx, dword [esp + 0x3c]
jge 0x449eac
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + ebx*8]
mov ebx, dword [ecx + ebx*8 + 4]
sub ebx, eax
je 0x449eac
cmp dword [esp + 0x1c], 0
je 0x449ea8
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
lea edi, [ebx + ebx]
push edi
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.004cd6c0
mov eax, dword [esp + 0x54]
add esp, 0xc
test ax, ax
je 0x449e94
mov ecx, dword [esp + 0x10]
movzx eax, ax
xor edx, edx
sub eax, 0x4c
mov word [edi + ecx], dx
je 0x449e8d
sub eax, 8
je 0x449e72
dec eax
jne 0x449e94
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp + 8]
add dword [eax + 4], ebx
add dword [esp + 0x10], edi
add esi, 2
mov ebx, eax
jmp 0x449c31
mov eax, ecx
call fcn.0041ba40
mov eax, dword [ebp + 8]
add dword [eax + 4], ebx
add dword [esp + 0x10], edi
add esi, 2
mov ebx, eax
jmp 0x449c31
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp + 8]
add dword [eax + 4], ebx
add dword [esp + 0x10], edi
add esi, 2
mov ebx, eax
jmp 0x449c31
add dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
add esi, 2
jmp 0x449c31
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 2
jl 0x449b90
mov eax, dword [ebp + 0x24]
mov esi, dword [eax]
sub esi, dword [eax + 4]
mov eax, dword [esp + 0x44]
neg esi
sbb esi, esi
and esi, 0xfffffbf0
add esi, 0x410
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
lea edi, [ecx + edx*2]
jmp 0x4499e8
cmp dword [esp + 0x20], 0
je 0x449f58
sub eax, dword [ebp + 0x20]
mov dword [esp + 0x24], eax
je 0x449f47
mov esi, dword [ebx + 4]
add esi, eax
cmp esi, dword [esp + 0x2c]
jl 0x449f2d
mov ecx, dword [ebx + 0xc]
lea eax, [esi + esi + 2]
push eax
push ecx
call fcn.004c61a7
add esp, 8
test eax, eax
je 0x449fc9
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0xc]
lea edx, [eax + eax]
mov eax, dword [ebx + 4]
push edx
lea edx, [ecx + eax*2]
push edi
push edx
call fcn.004cd6c0
add esp, 0xc
mov dword [ebx + 4], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx + 0xc]
mov dword [ebx], eax
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push ecx
call fcn.004aa2a0
jmp 0x44a033
push 0x4ea890
call fcn.0049fc00
mov edx, dword [0x51161c]
add esp, 4
test byte [edx + 0x100], 1
mov edi, eax
je 0x449fb9
push 0xa
lea eax, [esp + 0x54]
push eax
push esi
call fcn.004c4bd5
mov ecx, dword [0x5174dc]
add esp, 0xc
push 0x4e1a4c
push edi
push eax
call fcn.0042ef30
jmp 0x44a033
mov ecx, dword [0x5166e0]
push ecx
mov eax, esi
call fcn.00404290
jmp 0x44a033
push 0x4ea890
call fcn.0049fc00
mov edx, dword [0x51161c]
add esp, 4
test byte [edx + 0x100], 1
mov esi, eax
jne 0x449ff9
mov eax, dword [0x5166e0]
push eax
mov eax, 0xfffffffa
call fcn.00404290
jmp 0x44a01c
push 0xa
lea ecx, [esp + 0x54]
push ecx
push 0xfffffffffffffffa
call fcn.004c4bd5
mov ecx, dword [0x5174dc]
add esp, 0xc
push 0x4e1a4c
push esi
push eax
call fcn.0042ef30
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x44a033
push eax
call fcn.004c57e5
add esp, 4
mov dword [ebx + 0xc], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x44a0a7
cmp byte [esi + 0x17], 0
jne 0x44a044
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x44a05a
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x44a082
mov eax, esi
call fcn.00401610
and byte [esi + 0x15], 0x8f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x51603c], 0
je 0x44a08f
test al, 0x10
jne 0x44a09c
cmp dword [0x516040], 0
je 0x44a0a7
test al, 0x20
je 0x44a0a7
test al, 8
je 0x44a0a7
mov eax, esi
call fcn.00401610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret