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

Disassembly:
or eax, 0xffffffff
sub esp, 0x28
push ebx
push ebp
mov dword [0x509fa0], eax
mov dword [0x509fa4], eax
mov dword [0x509fa8], eax
mov dword [0x509fac], eax
mov dword [0x509fb0], eax
mov dword [0x509fb4], eax
mov dword [0x509fb8], eax
mov dword [0x509fbc], eax
mov dword [0x509fc0], eax
mov dword [0x509fc4], eax
mov dword [0x509fc8], eax
mov dword [0x509fcc], eax
mov dword [0x509fd0], eax
mov dword [0x509fd4], eax
mov dword [0x509fd8], eax
mov ax, word [0x509dca]
test ax, ax
push esi
push edi
jne 0x418728
movzx di, byte [0x50a255]
movzx eax, word [0x506e06]
movzx ebx, di
mov dword [esp + 0x24], ebx
movzx ebx, byte [0x50a254]
movzx ebx, bx
mov dword [esp + 0x1c], ebx
movzx ebx, byte [0x509f71]
movzx ebx, bx
movzx bp, byte [0x509d45]
mov dword [esp + 0x10], ebx
movzx ebx, byte [0x509f90]
movzx ebx, bx
mov dword [esp + 0x14], ebx
movzx ebx, byte [0x509d80]
shr ax, 1
add ax, word [0x506e02]
movzx ebx, bx
mov dword [esp + 0x18], ebx
movzx ebx, byte [0x509d54]
lea ecx, [eax + 0x3c]
movzx ebx, bx
movzx ecx, cx
test cx, cx
lea edx, [eax - 0x3c]
movzx esi, dx
mov dword [esp + 0x20], ebx
movzx edx, bp
movzx ebx, bp
jge 0x4182a0
mov ebp, esi
sub ebp, ecx
movzx ecx, bp
mov byte [0x50a0c1], bl
movzx ebx, byte [esp + 0x18]
mov byte [0x50a0fd], bl
movzx ebx, byte [esp + 0x14]
mov byte [0x50a11b], bl
movzx ebx, byte [esp + 0x10]
mov byte [0x50a139], bl
movzx ebx, byte [esp + 0x1c]
mov byte [0x50a157], bl
movzx ebx, byte [esp + 0x20]
mov byte [0x50a175], bl
movzx ebx, byte [esp + 0x24]
mov byte [0x50a193], bl
mov byte [0x50a1b1], dl
lea edx, [eax - 0x17]
movzx edx, dx
mov dword [esp + 0x10], edx
movzx edx, di
mov dword [esp + 0x28], edx
movzx dx, byte [0x509dd8]
movzx ebx, dx
mov dword [esp + 0x18], ebx
movzx bx, byte [0x509d4c]
movzx ebx, bx
mov dword [esp + 0x1c], ebx
movzx bx, byte [0x509dcc]
movzx ebx, bx
mov dword [esp + 0x14], ebx
movzx bx, byte [0x509d45]
movzx ebx, bx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x10]
add ebx, 0xc
movzx ebx, bx
mov dword [esp + 0x24], ebx
movzx ebx, word [esp + 0x10]
mov word [0x509ff0], bx
movzx ebx, word [esp + 0x24]
movzx bp, byte [0x509dc8]
mov word [0x50a068], bx
mov ebx, dword [0x509d48]
movzx di, byte [0x509f8d]
mov dword [0x50a204], ebx
movzx ebx, byte [esp + 0x20]
mov byte [0x50a0b8], bl
movzx ebx, byte [esp + 0x1c]
mov byte [0x50a0f4], bl
movzx ebx, byte [esp + 0x18]
mov byte [0x50a112], bl
movzx ebx, bp
mov byte [0x50a130], bl
movzx ebx, di
mov byte [0x50a14e], bl
movzx ebx, byte [esp + 0x14]
mov byte [0x50a16c], bl
movzx ebx, byte [esp + 0x28]
mov byte [0x50a18a], bl
mov word [0x50a002], si
movzx si, byte [0x509f70]
movzx ebx, si
mov byte [0x50a1a8], bl
lea ebx, [eax - 8]
movzx ebx, bx
mov dword [esp + 0x10], ebx
movzx ebx, si
mov dword [esp + 0x34], ebx
movzx bx, byte [0x50a255]
movzx ebx, bx
mov word [0x50a07a], cx
mov ecx, 1
mov dword [esp + 0x30], ebx
mov word [0x509fc6], 0x14
mov word [0x50a03e], 0x12c
mov dword [0x50a228], 0x4289ea
mov byte [0x50a0a3], cl
mov byte [0x50a1cf], cl
mov word [0x509fb4], 0xe8
mov word [0x50a02c], 0x124
mov byte [0x50a09a], cl
mov byte [0x50a1c6], cl
movzx ebx, di
mov dword [esp + 0x14], ebx
movzx ebx, bp
mov dword [esp + 0x18], ebx
movzx ebx, dx
mov dword [esp + 0x1c], ebx
movzx bx, byte [0x509d4c]
movzx ebx, bx
mov dword [esp + 0x20], ebx
movzx bx, byte [0x509dcc]
movzx ebx, bx
mov dword [esp + 0x2c], ebx
movzx bx, byte [0x509d45]
movzx ebx, bx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x10]
add ebx, 0xc
movzx ebx, bx
mov dword [esp + 0x28], ebx
movzx ebx, word [esp + 0x10]
mov word [0x509ff2], bx
movzx ebx, word [esp + 0x28]
mov word [0x50a06a], bx
mov ebx, dword [0x509f74]
mov dword [0x50a208], ebx
movzx ebx, byte [esp + 0x24]
mov byte [0x50a0b9], bl
movzx ebx, byte [esp + 0x20]
mov byte [0x50a0f5], bl
movzx ebx, byte [esp + 0x1c]
mov byte [0x50a113], bl
movzx ebx, byte [esp + 0x18]
mov byte [0x50a131], bl
movzx ebx, byte [esp + 0x14]
mov byte [0x50a14f], bl
movzx ebx, byte [esp + 0x2c]
mov byte [0x50a16d], bl
movzx ebx, byte [esp + 0x30]
mov byte [0x50a18b], bl
movzx ebx, byte [esp + 0x34]
mov byte [0x50a1a9], bl
lea ebx, [eax + 7]
movzx ebx, bx
mov dword [esp + 0x10], ebx
movzx ebx, si
mov dword [esp + 0x14], ebx
movzx bx, byte [0x50a255]
movzx ebx, bx
mov dword [esp + 0x18], ebx
movzx ebx, di
mov dword [esp + 0x20], ebx
movzx ebx, bp
mov dword [esp + 0x24], ebx
movzx ebx, dx
mov dword [esp + 0x28], ebx
movzx bx, byte [0x509d4c]
movzx ebx, bx
mov dword [esp + 0x2c], ebx
movzx bx, byte [0x509dcc]
movzx ebx, bx
mov dword [esp + 0x1c], ebx
movzx bx, byte [0x509d45]
movzx ebx, bx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x10]
add ebx, 0xc
movzx ebx, bx
mov dword [esp + 0x34], ebx
movzx ebx, word [esp + 0x10]
mov word [0x509ff4], bx
movzx ebx, word [esp + 0x34]
mov word [0x50a06c], bx
mov ebx, dword [0x509d60]
mov dword [0x50a20c], ebx
movzx ebx, byte [esp + 0x30]
mov word [0x509fb6], 0xe8
mov word [0x50a02e], 0x124
mov byte [0x50a09b], cl
mov byte [0x50a1c7], cl
mov word [0x509fb8], 0xe8
mov word [0x50a030], 0x124
mov byte [0x50a09c], cl
mov byte [0x50a0ba], bl
movzx ebx, byte [esp + 0x2c]
mov byte [0x50a0f6], bl
movzx ebx, byte [esp + 0x28]
mov byte [0x50a114], bl
movzx ebx, byte [esp + 0x24]
movzx esi, si
mov byte [0x50a132], bl
movzx ebx, byte [esp + 0x20]
mov dword [esp + 0x20], esi
movzx si, byte [0x50a255]
movzx esi, si
mov dword [esp + 0x24], esi
movzx esi, di
mov dword [esp + 0x2c], esi
movzx si, byte [0x509d4c]
movzx edx, dx
mov dword [esp + 0x30], edx
movzx edx, si
movzx si, byte [0x509dcc]
mov dword [esp + 0x34], edx
movzx edx, si
movzx si, byte [0x509d45]
add eax, 0x16
movzx eax, ax
mov byte [0x50a150], bl
movzx ebx, byte [esp + 0x1c]
mov dword [esp + 0x28], edx
movzx edx, si
lea esi, [eax + 0xc]
mov word [0x509ff6], ax
mov eax, dword [0x509dd4]
mov byte [0x50a16e], bl
movzx ebx, byte [esp + 0x18]
mov dword [0x50a210], eax
movzx eax, byte [esp + 0x30]
mov byte [0x50a0bb], dl
movzx edx, byte [esp + 0x34]
mov byte [0x50a18c], bl
movzx ebx, byte [esp + 0x14]
mov byte [0x50a0f7], dl
movzx edx, byte [esp + 0x2c]
mov byte [0x50a115], al
movzx eax, byte [esp + 0x28]
movzx esi, si
pop edi
mov byte [0x50a1aa], bl
movzx ebx, bp
mov word [0x50a06e], si
mov byte [0x50a151], dl
movzx edx, byte [esp + 0x20]
mov byte [0x50a16f], al
movzx eax, byte [esp + 0x1c]
pop esi
pop ebp
mov byte [0x50a133], bl
mov byte [0x50a1c8], cl
mov word [0x509fba], 0xe8
mov word [0x50a032], 0x124
mov byte [0x50a09d], cl
mov byte [0x50a18d], dl
mov byte [0x50a1ab], al
mov byte [0x50a1c9], cl
pop ebx
add esp, 0x28
ret
mov ecx, 1
cmp ax, cx
je 0x41873c
cmp ax, 2
jne 0x418e5d
movzx esi, word [0x506e06]
shr si, 1
add si, word [0x506e02]
movzx bp, byte [0x50a255]
lea edx, [esi + 0x3c]
movzx eax, dx
mov dword [esp + 0x10], eax
cmp word [esp + 0x10], 0
lea edx, [esi - 0x3c]
movzx eax, dx
movzx dx, byte [0x509f8d]
movzx edi, dx
mov dword [esp + 0x24], edi
movzx di, byte [0x509dc8]
movzx edi, di
mov dword [esp + 0x28], edi
movzx di, byte [0x509dd8]
movzx edi, di
mov dword [esp + 0x2c], edi
movzx di, byte [0x509d4c]
movzx edi, di
mov dword [esp + 0x30], edi
movzx di, byte [0x509dcc]
movzx edi, di
mov dword [esp + 0x20], edi
movzx di, byte [0x509d45]
movzx ebx, di
mov dword [esp + 0x14], eax
movzx ax, byte [0x509f70]
mov dword [esp + 0x34], ebx
jge 0x4187e2
mov ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0x10]
movzx ebx, bx
mov dword [esp + 0x10], ebx
movzx ebx, word [esp + 0x14]
mov word [0x50a002], bx
movzx ebx, word [esp + 0x10]
mov word [0x50a07a], bx
movzx ebx, byte [esp + 0x34]
mov byte [0x50a0c1], bl
movzx ebx, byte [esp + 0x30]
mov byte [0x50a0fd], bl
movzx ebx, byte [esp + 0x2c]
mov byte [0x50a11b], bl
movzx ebx, byte [esp + 0x28]
mov byte [0x50a139], bl
movzx ebx, byte [esp + 0x24]
mov byte [0x50a157], bl
movzx ebx, byte [esp + 0x20]
mov byte [0x50a175], bl
movzx ebx, bp
mov byte [0x50a193], bl
movzx ebx, ax
mov byte [0x50a1b1], bl
lea ebx, [esi - 0x2f]
movzx ebx, bx
mov dword [esp + 0x14], ebx
movzx ebx, ax
mov dword [esp + 0x10], ebx
movzx ebx, bp
mov dword [esp + 0x18], ebx
movzx bx, byte [0x509dc8]
movzx ebx, bx
mov dword [esp + 0x20], ebx
movzx ebx, dx
mov dword [esp + 0x24], ebx
movzx bx, byte [0x509d4c]
movzx ebx, bx
mov dword [esp + 0x28], ebx
movzx bx, byte [0x509dd8]
movzx ebx, bx
mov dword [esp + 0x2c], ebx
movzx bx, byte [0x509dcc]
movzx ebx, bx
mov dword [esp + 0x1c], ebx
movzx ebx, di
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
add ebx, 0x66
cmp word [0x509dca], 2
movzx ebx, bx
mov dword [esp + 0x34], ebx
movzx ebx, word [esp + 0x14]
mov word [0x50a004], bx
movzx ebx, word [esp + 0x34]
mov word [0x50a07c], bx
movzx ebx, byte [esp + 0x30]
mov byte [0x50a0c2], bl
movzx ebx, byte [esp + 0x2c]
mov byte [0x50a0fe], bl
movzx ebx, byte [esp + 0x28]
mov byte [0x50a11c], bl
movzx ebx, byte [esp + 0x24]
mov byte [0x50a13a], bl
movzx ebx, byte [esp + 0x20]
mov byte [0x50a158], bl
movzx ebx, byte [esp + 0x1c]
mov byte [0x50a176], bl
movzx ebx, byte [esp + 0x18]
mov byte [0x50a194], bl
movzx ebx, byte [esp + 0x10]
mov word [0x509fc6], 0x14
mov word [0x50a03e], 0x12c
mov dword [0x50a228], 0x4289ea
mov byte [0x50a0a3], cl
mov byte [0x50a1cf], cl
mov word [0x509fc8], 0x1a
mov word [0x50a040], 0xca
mov dword [0x50a22c], 0x4289ea
mov byte [0x50a0a4], cl
mov byte [0x50a1b2], bl
mov byte [0x50a1d0], cl
je 0x418bdc
lea ebx, [esi - 8]
movzx ebx, bx
mov dword [esp + 0x14], ebx
movzx ebx, ax
mov dword [esp + 0x10], ebx
movzx ebx, bp
mov dword [esp + 0x18], ebx
movzx ebx, dx
mov dword [esp + 0x20], ebx
movzx bx, byte [0x509dc8]
movzx ebx, bx
mov dword [esp + 0x24], ebx
movzx bx, byte [0x509dd8]
movzx ebx, bx
mov dword [esp + 0x28], ebx
movzx bx, byte [0x509d4c]
movzx ebx, bx
mov dword [esp + 0x2c], ebx
movzx bx, byte [0x509dcc]
movzx ebx, bx
mov dword [esp + 0x1c], ebx
movzx ebx, di
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
add ebx, 0xc
movzx ebx, bx
mov dword [esp + 0x34], ebx
movzx ebx, word [esp + 0x14]
mov word [0x509ff8], bx
movzx ebx, word [esp + 0x34]
mov word [0x50a070], bx
mov ebx, dword [0x509f80]
mov dword [0x50a214], ebx
movzx ebx, byte [esp + 0x30]
mov byte [0x50a0bc], bl
movzx ebx, byte [esp + 0x2c]
mov byte [0x50a0f8], bl
movzx ebx, byte [esp + 0x28]
mov byte [0x50a116], bl
movzx ebx, byte [esp + 0x24]
mov byte [0x50a134], bl
movzx ebx, byte [esp + 0x20]
mov byte [0x50a152], bl
movzx ebx, byte [esp + 0x1c]
mov byte [0x50a170], bl
movzx ebx, byte [esp + 0x18]
mov byte [0x50a18e], bl
movzx ebx, byte [esp + 0x10]
mov byte [0x50a1ac], bl
mov word [0x509fbc], 0xe8
mov word [0x50a034], 0x124
mov byte [0x50a09e], cl
mov byte [0x50a1ca], cl
lea ebx, [esi + 7]
movzx eax, ax
movzx edx, dx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
movzx eax, bp
movzx bp, byte [0x509dc8]
movzx edx, bp
movzx bp, byte [0x509dd8]
mov dword [esp + 0x2c], edx
movzx edx, bp
movzx bp, byte [0x509d4c]
mov dword [esp + 0x30], edx
movzx edx, bp
movzx bp, byte [0x509dcc]
mov dword [esp + 0x34], edx
movzx edx, bp
mov dword [esp + 0x24], edx
movzx edx, di
mov byte [0x50a0bd], dl
movzx edx, byte [esp + 0x34]
mov byte [0x50a0f9], dl
movzx edx, byte [esp + 0x30]
mov byte [0x50a117], dl
movzx edx, byte [esp + 0x2c]
mov byte [0x50a135], dl
movzx edx, byte [esp + 0x28]
mov byte [0x50a18f], al
mov al, byte [esp + 0x20]
mov byte [0x50a1ad], al
movzx ax, byte [0x509d64]
mov byte [0x50a153], dl
movzx edx, byte [esp + 0x24]
mov byte [0x50a171], dl
movzx edx, ax
movzx ax, byte [0x509d46]
movzx eax, ax
mov dword [esp + 0x2c], eax
movzx ax, byte [0x509d70]
movzx ebx, bx
mov dword [esp + 0x28], edx
movzx edx, ax
movzx ax, byte [0x509f8c]
lea ebp, [ebx + 0xc]
mov dword [esp + 0x30], edx
movzx ebp, bp
movzx eax, ax
lea edx, [esi - 0x2d]
mov word [0x509ffa], bx
mov ebx, dword [0x509f7c]
movzx edx, dx
mov dword [0x50a218], ebx
mov word [0x50a072], bp
mov dword [esp + 0x34], eax
mov byte [0x50a1cb], cl
mov byte [0x50a09f], cl
mov word [0x50a036], 0x124
mov word [0x509fbe], 0xe8
mov eax, 0x50a0af
mov dword [esp + 0x10], 0x50a1e0
mov ebx, 0x509e08
mov ebp, 0x509fde
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 9
jmp 0x418bf4
lea ebx, [esi - 1]
jmp 0x418a99
mov ebx, dword [esp + 0x24]
mov word [ebp - 0x3c], 0x1c
mov word [ebp], dx
add edx, 9
mov word [ebp + 0x3c], 0xc8
mov word [ebp + 0x78], dx
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
movzx edx, byte [esp + 0x34]
mov byte [eax - 0x1e], 0
mov byte [eax], dl
movzx edx, di
mov byte [eax + 0x3c], dl
movzx edx, di
mov byte [eax + 0x5a], dl
add dword [esp + 0x10], 4
movzx edx, di
mov byte [eax + 0x78], dl
movzx edx, di
mov byte [eax + 0x96], dl
movzx edx, byte [esp + 0x30]
mov byte [eax + 0xb4], dl
movzx edx, byte [esp + 0x2c]
mov byte [eax + 0xd2], dl
movzx edx, byte [esp + 0x28]
mov byte [eax + 0xf0], dl
mov edx, dword [esp + 0x14]
mov byte [eax + 0x10e], 0
add edx, 0xb
add ebx, 0x28
add ebp, 2
add eax, ecx
sub dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebx
jne 0x418bf0
movzx dx, byte [0x509f8d]
movzx edx, dx
mov dword [esp + 0x24], edx
movzx dx, byte [0x509dc8]
movzx edx, dx
mov dword [esp + 0x28], edx
movzx dx, byte [0x509dd8]
movzx edx, dx
mov dword [esp + 0x2c], edx
movzx dx, byte [0x509d4c]
movzx edx, dx
mov dword [esp + 0x30], edx
movzx dx, byte [0x509d70]
lea eax, [esi - 0x2b]
movzx ebx, dx
movzx eax, ax
mov dword [esp + 0x20], ebx
movzx bx, byte [0x509f8c]
mov word [0x509ffc], ax
movzx ebx, bx
movzx bp, byte [0x509d46]
mov dword [esp + 0x34], ebx
lea ebx, [eax + 0x2f]
movzx eax, byte [esp + 0x34]
mov byte [0x50a0be], al
movzx eax, byte [esp + 0x30]
movzx di, byte [0x509d64]
mov byte [0x50a0fa], al
movzx eax, byte [esp + 0x2c]
mov byte [0x50a118], al
movzx eax, byte [esp + 0x28]
mov byte [0x50a136], al
movzx eax, byte [esp + 0x24]
mov byte [0x50a154], al
movzx eax, byte [esp + 0x20]
mov byte [0x50a172], al
add esi, 7
movzx eax, bp
mov byte [0x50a190], al
movzx eax, di
mov byte [0x50a1ae], al
movzx eax, si
movzx esi, di
mov dword [esp + 0x20], esi
movzx esi, bp
mov dword [esp + 0x24], esi
movzx si, byte [0x509f8d]
movzx esi, si
mov dword [esp + 0x28], esi
movzx si, byte [0x509dc8]
movzx esi, si
mov dword [esp + 0x2c], esi
movzx si, byte [0x509dd8]
movzx esi, si
mov dword [esp + 0x30], esi
movzx si, byte [0x509d4c]
movzx esi, si
mov dword [esp + 0x34], esi
movzx si, byte [0x509f8c]
movzx ebx, bx
mov word [0x50a074], bx
movzx ebx, si
lea esi, [eax + 0x2d]
mov word [0x509ffe], ax
movzx eax, byte [esp + 0x34]
mov byte [0x50a0fb], al
movzx eax, byte [esp + 0x30]
movzx esi, si
mov word [0x509fc0], 0xce
mov word [0x50a038], 0xde
mov dword [0x50a21c], 0x428ae4
mov byte [0x50a0a0], cl
mov byte [0x50a1cc], cl
movzx edx, dx
mov word [0x509fc2], 0xce
mov word [0x50a03a], 0xde
mov word [0x50a076], si
mov dword [0x50a220], 0x428ae8
mov byte [0x50a0a1], cl
mov byte [0x50a0bf], bl
mov byte [0x50a119], al
movzx eax, byte [esp + 0x2c]
mov byte [0x50a137], al
movzx eax, byte [esp + 0x28]
mov byte [0x50a155], al
movzx eax, byte [esp + 0x20]
mov byte [0x50a173], dl
mov dl, byte [esp + 0x24]
mov byte [0x50a191], dl
mov byte [0x50a1af], al
mov byte [0x50a1cd], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret