Function at 0x403350
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x30], edi
mov eax, dword [edi + 0x2a8]
mov dword [esp + 0x50], esi
and eax, 0x100000
cmp ebx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x2c], ebx
jne 0x4033e8
lea ebx, [esp + 0x90]
mov ebp, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x34]
lea edx, [esp + 0x78]
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x44], 0xc
call fcn.004e7760
add esp, 0xc
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004e7840
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x2a8]
test eax, 0x20000
jne 0x403448
mov dword [esp + 0x70], esi
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00470430
xor eax, eax
add esp, 8
mov ax, word [edi + 0xdc]
lea ecx, [esp + 0x34]
shr eax, 1
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x38], eax
call fcn.004e75f0
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.004e7720
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x90]
mov edx, dword [eax + 8]
lea eax, [esp + 0x78]
push eax
push ebp
push ecx
mov dword [esp + 0x58], edx
call fcn.004e7760
mov edx, eax
add esp, 0x18
mov eax, dword [edx]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x2a8]
test ecx, 0x20000
jne 0x4034e3
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x38]
push edx
push ebx
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004e67a0
add esp, 0x10
test eax, eax
jne 0x40351f
mov edx, ebx
mov dword [esp + 0x28], 1
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x40], edx
jmp 0x403523
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x58]
sub edi, ecx
mov eax, edi
sub ebp, edx
sar eax, 0x1f
mov ecx, eax
mov dword [esp + 0x48], edi
xor ecx, edi
mov dword [esp + 0x34], ebp
sub ecx, eax
mov eax, ebp
sar eax, 0x1f
mov edi, eax
mov dword [esp + 0x68], ecx
xor edi, ebp
sub edi, eax
mov eax, ecx
sar eax, 1
cmp edi, eax
mov dword [esp + 0x44], edi
jle 0x403573
mov ecx, dword [esp + 0x30]
xor edi, edi
mov di, word [ecx + 0xdc]
shl edi, 0xc
jmp 0x40359f
sar edi, 1
cmp ecx, edi
jle 0x40358d
mov eax, dword [esp + 0x30]
xor esi, esi
xor edi, edi
mov si, word [eax + 0xdc]
shl esi, 0xc
jmp 0x40359f
mov ecx, dword [esp + 0x30]
xor esi, esi
mov si, word [ecx + 0xdc]
shl esi, 0xb
mov edi, esi
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
test byte [edx + 0x2aa], 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
jne 0x4035eb
cmp ecx, eax
push str.Hmmm..._these_arent_equal___Fire_Matt_immediately.
sete al
push eax
call fcn.004015b0
add esp, 8
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov edx, dword [esp + 0x24]
sar eax, 1
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, esi
sar ecx, 1
add edx, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push ecx
lea edx, [esp + 0x14]
push ebx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004e67a0
add esp, 0x10
test eax, eax
je 0x4037e5
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub ecx, esi
sub edx, edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
sub eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
push ecx
lea edx, [esp + 0x14]
push ebx
lea eax, [esp + 0x24]
sub edi, esi
push edx
push eax
mov dword [esp + 0x28], edi
call fcn.004e67a0
add esp, 0x10
test eax, eax
je 0x403796
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40379e
mov ecx, dword [esp + 0x30]
test dword [ecx + 0x2a8], 0x2020000
jne 0x403775
movsx eax, word [ecx + 0x21e]
mov edx, dword [ecx + 0x29c]
mov ecx, dword [esp + 0x68]
shl eax, 0xc
add eax, edx
lea edi, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
cmp eax, ecx
jg 0x4036cd
lea edi, [esp + 0x48]
mov ecx, dword [edi]
mov esi, 1
mov eax, ecx
mov edx, esi
sar eax, 0x1f
mov ebx, eax
xor ebx, ecx
sub ebx, eax
cmp ebx, 0xfa000
jle 0x403712
mov eax, dword [esp + 0x48]
add esi, edx
sar ebp, 1
sar eax, 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], eax
mov ecx, dword [edi]
mov eax, ecx
sar eax, 0x1f
mov ebx, eax
xor ebx, ecx
sub ebx, eax
shl edx, 1
cmp ebx, 0xfa000
jg 0x4036e9
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov eax, esi
dec esi
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
je 0x403775
mov edi, dword [esp + 0xac]
push 0
push edi
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004e6840
add esp, 0x10
cmp eax, 0xffffffff
je 0x403784
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x10], eax
add ebx, ebp
mov eax, esi
dec esi
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x403740
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret 0x10
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40396d
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40396d
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.004e7760
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
jmp 0x403894
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40396d
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.004e7760
mov ecx, dword [eax]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x68], ecx
mov ecx, ebx
mov edx, dword [eax + 4]
sub ebp, edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
sub eax, edi
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x30]
sub ecx, esi
sub edx, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
push eax
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004e67a0
add esp, 0x1c
test eax, eax
jne 0x403894
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.004e7760
mov edx, dword [eax]
add esp, 0xc
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40396d
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.004e7760
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x5c]
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x80], eax
call fcn.004e74a0
lea ecx, [esp + 0x78]
mov dword [esp + 0x68], eax
call fcn.004e74a0
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov esi, 0xc
mov cx, word [edx + 0xdc]
mov dword [esp + 0x44], esi
shr ecx, 1
add eax, ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
push eax
call fcn.004e7650
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x7c]
call fcn.004e75f0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x78]
push edx
call fcn.004e7620
lea eax, [esp + 0x44]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0x48], esi
call fcn.004e7680
lea ecx, [esp + 0x78]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x88]
push edx
push eax
call fcn.004e7720
mov edx, dword [eax]
mov ecx, ebx
add esp, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [edi]
sub ecx, eax
test ecx, ecx
mov ecx, dword [ebx]
setg dl
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
cmp eax, edx
jne 0x4039bb
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
sub ecx, eax
xor edx, edx
test ecx, ecx
mov ecx, dword [ebx + 8]
setg dl
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
cmp eax, edx
mov eax, 2
je 0x4039c0
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x10