Function at 0x419d40
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebp
push esi
xor ebp, ebp
push 9
mov dword [esp + 0x10], ebp
call fcn.00416700
mov eax, dword [esp + 0x5c]
mov esi, eax
and esi, 0xffffff
add esp, 4
mov dword [esp + 8], esi
test eax, 0x10000000
je 0x419d89
mov eax, dword [0x489540]
push 9
mov dword [eax + 0x2c8], ebp
call fcn.00416730
add esp, 4
pop esi
mov eax, ebp
pop ebp
add esp, 0x4c
ret
test eax, 0x20000000
je 0x419db4
mov ecx, dword [0x489540]
push 9
mov dword [ecx + 0x2c8], 1
call fcn.00416730
mov eax, dword [esp + 0x10]
add esp, 4
pop esi
pop ebp
add esp, 0x4c
ret
push edi
mov edi, dword [0x489540]
cmp dword [edi + 0x2c8], ebp
jne 0x419fb6
push ebx
mov ebx, eax
not ebx
and ebx, 0x80000000
cmp ebx, 0x80000000
jne 0x419f2a
push 0x40
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.00409680
mov edx, dword [esp + 0x78]
mov al, byte [0x489500]
mov cx, word [esp + 0x74]
movsx ebp, word [edi + 2]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x44], edx
movsx edx, word [edi]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x7c]
mov word [esp + 0x36], cx
mov ecx, dword [esp + 0x80]
shl edx, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x8c]
add ebp, edx
add esp, 0xc
mov word [esp + 0x1c], si
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebp
call fcn.004193c0
mov edi, dword [0x489500]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
cmp edi, 0x17
je 0x419e87
cmp edi, 0x18
je 0x419e87
cmp edi, 0x19
je 0x419e87
cmp edi, 0x13
je 0x419e87
cmp edi, 0x2c
je 0x419e87
cmp edi, 0x39
jne 0x419e9a
mov ecx, dword [0x489540]
mov byte [ecx + 0xbc], 1
mov edi, dword [0x489500]
mov dword [esp + 0x18], 0
mov eax, dword [0x489784]
mov edx, edi
shl edx, 6
cmp byte [edx + eax + 0xc], 0
je 0x419edf
push 1
call fcn.00417e80
mov eax, dword [esp + 0x1c]
mov edi, dword [0x489500]
inc eax
add esp, 4
cmp eax, 5
mov dword [esp + 0x18], eax
jle 0x419ea2
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x100112
jmp 0x419f34
cmp dword [esp + 0x18], 5
jle 0x419ef4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x100112
jmp 0x419f34
shl edi, 6
add edi, eax
mov ecx, 0x10
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [0x489500]
push esi
push eax
call fcn.00418c30
push 2
call fcn.00419340
push esi
call fcn.004573a0
mov eax, dword [esp + 0x70]
add esp, 0x10
jmp 0x419f2e
mov ebp, dword [esp + 0x44]
mov edi, dword [0x489500]
test eax, 0x40000000
je 0x419f41
neg esi
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ebp
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
push esi
push edi
call fcn.004183e0
add esp, 0x34
cmp ebx, 0x80000000
pop ebx
jne 0x419fb6
cmp dword [esp + 0x10], 0
jne 0x419fb6
push 5
push 1
call fcn.004197c0
add esp, 8
mov dword [esp + 0x10], eax
pop edi
push 9
call fcn.00416730
mov eax, dword [esp + 0x10]
add esp, 4
pop esi
pop ebp
add esp, 0x4c
ret