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

Disassembly:
sub esp, 0x348
mov al, byte [0x48129c]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, 1
mov dword [esp + 0x44], ebp
jne 0x41cee4
mov dl, al
mov eax, dword [0x469374]
or dl, 1
push eax
mov byte [0x48129c], dl
call fcn.004516d0
mov dword [0x481298], eax
mov edx, dword [esp + 0x384]
mov eax, dword [ebp + 0x34]
test edx, edx
mov edx, dword [esp + 0x35c]
mov dword [0x4690d8], 0x402a48
setne byte [esp + 0x58]
shr eax, 1
and al, 1
mov edi, edx
mov byte [esp + 0x13], al
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x364]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ebx
mov edi, ecx
lea ecx, [esp + 0x5c]
push ecx
push edx
mov edx, dword [esp + 0x368]
mov dword [esp + 0x50], 0
shr eax, 4
and al, 1
push edx
push eax
mov dword [esp + 0x44], edi
call fcn.0041c4a0
mov esi, dword [esp + 0x378]
mov dword [esp + 0x6c], eax
neg esi
sbb esi, esi
mov eax, 4
and esi, 0xffffffec
add esi, 0x14
and ebx, 8
mov dword [esp + 0x54], ebx
je 0x41cf75
cmp edi, 8
jbe 0x41cf75
lea eax, [edi + 5]
mov ecx, dword [ebp + 0x40]
mov dl, byte [esp + 0x13]
add ecx, edi
mov dword [esp + 0x14], 3
test dl, dl
lea eax, [eax + ecx + 0x1c]
mov ebx, 0xa
mov dword [esp + 0x1c], eax
je 0x41cfa4
mov dword [esp + 0x14], 4
mov ebx, 0xb
mov ecx, dword [esp + 0x364]
mov edi, ecx
and edi, 0x2008
mov dword [esp + 0x40], edi
jne 0x41cfd5
mov ecx, dword [esp + 0x14]
add ebx, 2
inc ecx
test dl, dl
mov dword [esp + 0x14], ecx
je 0x41cfe0
mov edx, ecx
inc edx
add ebx, 2
mov dword [esp + 0x14], edx
jmp 0x41cfe0
test ch, 0x20
je 0x41cfe0
add ebx, 0xffff
mov cl, byte [esp + 0x368]
test cl, cl
je 0x41cfff
mov edx, dword [esp + 0x14]
add edx, 0xffff
add ebx, 0xfffe
mov dword [esp + 0x14], edx
cmp eax, dword [0x469374]
jbe 0x41d026
mov eax, dword [esp + 0x1c]
mov edx, dword [0x481298]
push eax
push edx
mov dword [0x469374], eax
call fcn.00451720
mov dword [0x481298], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [0x481298]
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
mov dword [esp + 0x28], edx
rep stosb byte es:[edi], al
mov eax, dword [0x481298]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov edi, 1
mov dword [eax], ecx
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x37c]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x41d08a
mov eax, dword [esp + 0x14]
and eax, 0xffff
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
mov dword [esp + 0x18], edx
mov al, byte [esp + 0x13]
test al, al
je 0x41d0cd
mov eax, dword [0x401ecc]
mov edx, dword [0x401ec8]
xor ecx, ecx
push eax
mov cl, byte [ebp + 0x64]
push 0
add ecx, 0x37
lea eax, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
mov word [esp + 0x40], 1
mov byte [esp + 0x38], 0
mov edi, 2
call fcn.00420e70
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41d188
xor eax, eax
mov word [esp + 0x2a], di
mov ax, word [ebp + 0x38]
inc edi
sub eax, 0x14c
mov byte [esp + 0x21], 2
je 0x41d104
sub eax, 0x38
je 0x41d0fd
mov ecx, 0x60301020
jmp 0x41d109
mov ecx, 0x60501020
jmp 0x41d109
mov ecx, 0x60201020
mov eax, dword [ebp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dx, word [eax + 0xc]
mov eax, dword [eax + 8]
push edx
push eax
push 0x402064
lea edx, [esp + 0xa8]
push ecx
push edx
call fcn.00420e70
mov al, byte [esp + 0x13]
test al, al
je 0x41d188
mov ecx, dword [esp + 0x35c]
lea eax, [esp + 0x4c]
push eax
mov word [esp + 0x30], di
push ecx
mov byte [esp + 0x2a], 3
inc edi
call fcn.0041c440
mov edx, dword [0x401ecc]
mov ecx, dword [0x401ec8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
or dh, 0x10
and eax, 0xff
push edx
add eax, 0x1e
push 2
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0xd0]
push edx
push eax
call fcn.00420e70
mov al, byte [esp + 0x368]
mov word [esp + 0x2e], di
mov cl, al
push 0xc0301040
neg cl
sbb cl, cl
xor edx, edx
and cl, 0xfe
add cl, 7
inc edi
test al, al
sete dl
mov esi, edx
mov byte [esp + 0x27], cl
push esi
push 4
lea eax, [esp + 0x24]
push 0x402058
lea ecx, [esp + 0xf8]
push eax
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], esi
call fcn.00420e70
mov dl, byte [esp + 0x368]
push 0xc0301040
neg dl
sbb dl, dl
push esi
and dl, 0xfe
push 4
lea eax, [esp + 0x24]
push 0x40204c
lea ecx, [esp + 0x120]
add dl, 6
push eax
push ecx
mov word [esp + 0x48], di
mov byte [esp + 0x3c], dl
call fcn.00420e70
mov al, byte [esp + 0x368]
test al, al
jne 0x41d265
mov eax, dword [esp + 0x5c]
inc edi
test al, 1
mov word [esp + 0x32], di
mov byte [esp + 0x25], 8
je 0x41d236
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
jmp 0x41d23c
mov dword [esp + 0x38], eax
mov ecx, eax
sub ecx, eax
push 0xc0201040
push 0
mov dword [esp + 0x40], ecx
lea edx, [ecx + eax + 2]
lea eax, [esp + 0x20]
push edx
push 0x40206c
lea ecx, [esp + 0x148]
push eax
push ecx
call fcn.00420e70
mov al, byte [esp + 0x58]
test al, al
je 0x41d271
xor ecx, ecx
jmp 0x41d280
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x41d284
and ecx, 0xfffffffe
add ecx, 2
mov dword [esp + 0x18], ecx
mov al, byte [esp + 0x370]
test al, al
je 0x41d2c6
mov eax, ebx
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x374]
and eax, 0xffff
push edx
mov edx, dword [ebp + 0x2c]
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*2]
mov al, byte [ebp + 0x20]
add ecx, esi
push ecx
mov ecx, dword [ebp + 0x1c]
push 0
push edx
mov edx, dword [ebp + 0x5c]
push eax
push ecx
push edx
call fcn.0043d2e0
mov ecx, dword [esp + 0x18]
mov ax, word [esp + 0x14]
mov dword [ebp + 0x50], ecx
mov ecx, dword [esp + 0x378]
mov word [ebp + 0x4a], ax
mov eax, dword [ebp + 0x5c]
lea edx, [ebp + 0x48]
push ecx
xor esi, esi
and ebx, 0xffff
push edx
push eax
mov word [ebp + 0x58], si
mov dword [ebp + 0x54], ebx
call fcn.004635f0
mov ecx, dword [esp + 0x380]
mov edx, dword [esp + 0x37c]
mov dword [esp + 0x14], ecx
lea ebx, [esp + 0x70]
mov dword [esp + 0x50], edx
lea edi, [esp + 0x28]
cmp word [edi], 0
je 0x41d35f
mov eax, dword [esp + 0x380]
test eax, eax
je 0x41d32f
mov ecx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x20]
mov byte [ecx], al
mov eax, dword [esp + 0x37c]
test eax, eax
je 0x41d352
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov eax, ecx
inc edx
add ecx, 0x28
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], ecx
jmp 0x41d354
xor eax, eax
mov edx, dword [ebp + 0x5c]
push eax
push ebx
push edx
call fcn.00463750
inc esi
add edi, 2
add ebx, 0x28
cmp esi, 6
jl 0x41d314
mov cl, byte [esp + 0x13]
mov eax, 1
test cl, cl
je 0x41d37d
mov eax, 2
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x41d395
add eax, 2
mov word [esp + 0x64], ax
inc eax
test cl, cl
je 0x41d395
add eax, 2
mov esi, dword [esp + 0x54]
add eax, 2
mov word [esp + 0x66], ax
inc eax
test esi, esi
je 0x41d3ac
mov word [esp + 0x64], ax
inc eax
mov cl, byte [esp + 0x368]
test cl, cl
jne 0x41d3bf
add eax, 2
mov word [esp + 0x68], ax
mov edx, dword [esp + 0x384]
test edx, edx
je 0x41d3d2
xor eax, eax
mov ax, word [edx + 0x1a]
jmp 0x41d3e9
test cl, cl
je 0x41d3da
xor eax, eax
jmp 0x41d3e9
mov bl, byte [esp + 0x360]
xor eax, eax
test bl, bl
setne al
inc eax
test esi, esi
je 0x41d3f4
mov ecx, 2
jmp 0x41d401
mov ecx, dword [esp + 0x364]
shr ecx, 0xd
and ecx, 1
mov esi, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x7c]
push esi
push eax
mov eax, dword [esp + 0x384]
push ecx
lea ecx, [esp + 0x80]
push eax
push ecx
push edx
mov edx, dword [esp + 0x80]
mov ecx, ebp
push edx
call fcn.0041cd40
mov eax, dword [0x481298]
mov ecx, 0x7e
lea edi, [esp + 0x160]
push 2
lea ebx, [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x5c]
push ecx
call fcn.0041c3b0
mov eax, dword [0x480f98]
push 8
cmp eax, 2
jne 0x41d47a
lea edx, [esp + 0x164]
push 0x401c50
push edx
jmp 0x41d487
lea eax, [esp + 0x164]
push 0x402a3c
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
mov dword [esp + 0x168], 0x41fe8
mov word [esp + 0x16c], 0xffff
mov byte [esp + 0x170], 3
lea ebp, [esp + 0x172]
je 0x41d512
mov ecx, dword [0x402078]
mov edx, dword [0x40207c]
mov eax, dword [0x402080]
mov dword [esp + 0x172], ecx
mov ecx, dword [0x402084]
mov dword [esp + 0x176], edx
mov dx, word [0x402088]
mov dword [esp + 0x17a], eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x17e], ecx
mov word [esp + 0x182], dx
mov word [esp + 0x17e], ax
lea ebp, [esp + 0x184]
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, edi
jne 0x41d622
mov edx, dword [0x402090]
mov eax, dword [0x402094]
mov ecx, ebp
mov si, word [esp + 0x2a]
add ebp, 0x12
mov dword [ecx], edx
mov edx, dword [0x402098]
add ebp, 0x12
mov dword [ecx + 4], eax
mov eax, dword [0x40209c]
mov dword [ecx + 8], edx
mov dx, word [0x4020a0]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xa8]
mov word [ecx + 0x10], dx
mov word [ebp - 0x18], si
mov dword [ebp - 0x12], eax
mov eax, dword [esp + 0x34]
mov word [ebp - 0xe], 1
mov word [ebp - 0xc], di
mov dword [ebp - 0xa], edi
mov word [ebp - 6], di
mov byte [ebp - 4], 1
cmp eax, 8
jbe 0x41d597
mov edx, dword [0x481298]
mov ecx, ebx
sub ecx, edx
add ecx, 6
mov dword [ebp + 4], ecx
jmp 0x41d5ab
mov edx, dword [esp + 0x35c]
push 8
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov al, byte [esp + 0x13]
mov word [ebp + 0xc], si
mov word [ebp + 0xe], 0x20
mov byte [ebp + 0x10], 2
add ebp, 0x12
test al, al
je 0x41d622
mov ecx, dword [0x4020a8]
mov edx, dword [0x4020ac]
mov eax, ebp
add ebp, 0x12
add ebp, 0x12
mov dword [eax], ecx
mov ecx, dword [0x4020b0]
mov dword [eax + 4], edx
mov edx, dword [0x4020b4]
mov dword [eax + 8], ecx
mov cx, word [0x4020b8]
mov dword [eax + 0xc], edx
mov dx, word [esp + 0x2c]
mov word [eax + 0x10], cx
mov eax, dword [esp + 0xd0]
mov word [ebp - 0x18], dx
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 2
mov word [ebp - 0xc], di
mov dword [ebp - 0xa], edi
mov word [ebp - 6], si
mov byte [ebp - 4], 5
mov edx, dword [0x4020c0]
mov eax, dword [0x4020c4]
mov ecx, ebp
add ebp, 0x12
add ebp, 0x12
mov edi, 0x402024
mov dword [ecx], edx
mov edx, dword [0x4020c8]
add ebp, 0x12
mov dword [ecx + 4], eax
mov eax, dword [0x4020cc]
mov dword [ecx + 8], edx
mov dx, word [0x4020d0]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xf8]
mov word [ecx + 0x10], dx
mov dx, word [esp + 0x2e]
mov cx, word [esp + 0x60]
mov word [ebp - 0x2a], dx
mov dword [ebp - 0x24], eax
xor eax, eax
mov word [ebp - 0x20], cx
mov ecx, dword [0x481298]
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
mov byte [ebp - 0x16], 1
mov eax, ebx
sub eax, ecx
or ecx, 0xffffffff
mov dword [ebp - 0xe], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
add ebx, 6
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x35c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov word [ebp - 6], dx
mov byte [ebp - 2], 2
test eax, eax
lea ebx, [ebx + ecx + 1]
je 0x41d76b
mov eax, ecx
cmp eax, 8
jbe 0x41d743
mov ecx, dword [0x481298]
mov edi, dword [esp + 0x35c]
mov eax, ebx
sub eax, ecx
or ecx, 0xffffffff
mov dword [ebp + 4], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
add ebp, 0x12
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov word [ebp - 6], dx
mov byte [ebp - 2], 2
lea ebx, [ebx + ecx + 1]
jmp 0x41d76d
mov edx, dword [esp + 0x35c]
push 8
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov dx, word [esp + 0x3a]
add esp, 0xc
xor eax, eax
mov word [ebp + 0xc], dx
mov byte [ebp + 0x10], 2
add ebp, 0x12
jmp 0x41d76d
xor eax, eax
mov esi, dword [0x4020d8]
mov ecx, ebp
add ebp, 0x12
mov dword [ecx], esi
mov esi, dword [0x4020dc]
add ebp, 0x12
mov dword [ecx + 4], esi
mov esi, dword [0x4020e0]
mov dword [ecx + 8], esi
mov esi, dword [0x4020e4]
mov dword [ecx + 0xc], esi
mov si, word [0x4020e8]
mov word [ecx + 0x10], si
mov cx, word [esp + 0x3c]
mov word [ebp - 0x18], cx
mov ecx, dword [esp + 0x120]
mov dword [ebp - 0x12], ecx
mov cx, word [esp + 0x60]
mov word [ebp - 0xe], cx
mov cl, byte [esp + 0x368]
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], dx
mov byte [ebp - 4], 5
test cl, cl
jne 0x41d835
mov esi, dword [0x4020f0]
mov ecx, ebp
add ebp, 0x12
mov dword [ecx], esi
mov esi, dword [0x4020f4]
add ebp, 0x12
mov dword [ecx + 4], esi
mov esi, dword [0x4020f8]
mov dword [ecx + 8], esi
mov esi, dword [0x4020fc]
mov dword [ecx + 0xc], esi
mov si, word [0x402100]
mov word [ecx + 0x10], si
mov cx, word [esp + 0x32]
mov word [ebp - 0x18], cx
mov ecx, dword [esp + 0x148]
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], dx
mov byte [ebp - 4], 5
mov ecx, dword [0x481298]
mov edx, ebx
sub edx, ecx
mov edi, 0x401ff0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 4], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov edx, dword [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
add ebp, 0x12
rep movsb byte es:[edi], byte [esi]
mov edi, dword [edx + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [esp + 0x3c], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x3c]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x384]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp - 6], 0
mov byte [ebp - 2], 2
test eax, eax
je 0x41d8eb
mov al, byte [0x481194]
mov esi, dword [edx + 0x5c]
test al, al
je 0x41d8c7
call fcn.0040ca50
mov edx, dword [esp + 0x44]
mov ecx, dword [0x469524]
mov eax, dword [ecx + esi*4]
test byte [eax + 4], 8
je 0x41d8db
mov eax, dword [eax + 0x1c]
jmp 0x41d8e1
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x384]
mov dword [ecx + 0xc], eax
mov esi, dword [edx + 0x5c]
lea eax, [esp + 0x160]
sub ebp, eax
mov al, byte [0x481194]
test al, al
je 0x41d905
call fcn.0040ca50
mov ecx, dword [0x469524]
push ebp
mov eax, dword [ecx + esi*4]
test byte [eax + 4], 8
je 0x41d925
lea edx, [esp + 0x164]
push edx
push eax
call fcn.0040c700
jmp 0x41d933
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0040bd70
mov ebx, dword [esp + 0x44]
mov al, byte [0x481194]
mov esi, dword [0x481298]
mov edi, dword [ebx + 0x5c]
test al, al
je 0x41d94e
call fcn.0040ca50
mov edx, dword [0x469524]
mov eax, dword [edx + edi*4]
test byte [eax + 4], 8
je 0x41d96b
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.0040c700
jmp 0x41d977
mov edx, dword [esp + 0x1c]
push edx
push esi
push eax
call fcn.0040bd70
mov al, byte [0x481194]
mov esi, dword [ebx + 0x5c]
test al, al
je 0x41d988
call fcn.0040ca50
mov eax, dword [0x469524]
mov eax, dword [eax + esi*4]
test byte [eax + 4], 8
je 0x41d99b
mov eax, dword [eax + 0x1c]
jmp 0x41d9a1
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
test al, 1
je 0x41d9e4
mov al, byte [0x481194]
mov esi, dword [ebx + 0x5c]
test al, al
je 0x41d9b6
call fcn.0040ca50
mov edx, dword [0x469524]
push 1
push 0x4028ec
mov eax, dword [edx + esi*4]
push eax
test byte [eax + 4], 8
je 0x41d9df
call fcn.0040c700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret 0x2c
call fcn.0040bd70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret 0x2c