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

Disassembly:
sub esp, 0x34c
mov al, byte [0x48129c]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, 1
mov dword [esp + 0x44], ebp
jne 0x41d064
mov dl, al
mov eax, dword [0x469374]
or dl, 1
push eax
mov byte [0x48129c], dl
call fcn.00451b20
mov dword [0x481298], eax
mov edx, dword [esp + 0x388]
mov eax, dword [ebp + 0x34]
test edx, edx
mov edx, dword [esp + 0x360]
mov dword [0x4690d8], 0x402a50
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 + 0x368]
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 + 0x36c]
mov dword [esp + 0x50], 0
shr eax, 4
and al, 1
push edx
push eax
mov dword [esp + 0x44], edi
call fcn.0041c610
mov esi, dword [esp + 0x37c]
mov dword [esp + 0x70], eax
neg esi
sbb esi, esi
mov eax, 4
and esi, 0xffffffec
add esi, 0x14
and ebx, 8
mov dword [esp + 0x54], ebx
je 0x41d0f5
cmp edi, 8
jbe 0x41d0f5
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 0x41d124
mov dword [esp + 0x14], 4
mov ebx, 0xb
mov ecx, dword [esp + 0x368]
mov edi, ecx
and edi, 0x2008
mov dword [esp + 0x40], edi
jne 0x41d155
mov ecx, dword [esp + 0x14]
add ebx, 2
inc ecx
test dl, dl
mov dword [esp + 0x14], ecx
je 0x41d160
mov edx, ecx
inc edx
add ebx, 2
mov dword [esp + 0x14], edx
jmp 0x41d160
test ch, 0x20
je 0x41d160
add ebx, 0xffff
mov cl, byte [esp + 0x36c]
test cl, cl
je 0x41d17f
mov edx, dword [esp + 0x14]
add edx, 0xffff
add ebx, 0xfffe
mov dword [esp + 0x14], edx
cmp eax, dword [0x469374]
jbe 0x41d1a6
mov eax, dword [esp + 0x1c]
mov edx, dword [0x481298]
push eax
push edx
mov dword [0x469374], eax
call fcn.00451b70
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 + 0x380]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x41d20a
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 0x41d24d
mov eax, dword [0x401ed4]
mov edx, dword [0x401ed0]
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 + 0x84]
push eax
push ecx
mov word [esp + 0x40], 1
mov byte [esp + 0x38], 0
mov edi, 2
call fcn.00421010
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x41d308
xor eax, eax
mov word [esp + 0x2a], di
mov ax, word [ebp + 0x38]
inc edi
sub eax, 0x14c
mov byte [esp + 0x21], 2
je 0x41d284
sub eax, 0x38
je 0x41d27d
mov ecx, 0x60301020
jmp 0x41d289
mov ecx, 0x60501020
jmp 0x41d289
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 0x40206c
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.00421010
mov al, byte [esp + 0x13]
test al, al
je 0x41d308
mov ecx, dword [esp + 0x360]
lea eax, [esp + 0x4c]
push eax
mov word [esp + 0x30], di
push ecx
mov byte [esp + 0x2a], 3
inc edi
call fcn.0041c5b0
mov edx, dword [0x401ed4]
mov ecx, dword [0x401ed0]
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 + 0xd4]
push edx
push eax
call fcn.00421010
mov al, byte [esp + 0x36c]
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 0x402060
lea ecx, [esp + 0xfc]
push eax
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], esi
call fcn.00421010
mov dl, byte [esp + 0x36c]
push 0xc0301040
neg dl
sbb dl, dl
push esi
and dl, 0xfe
push 4
lea eax, [esp + 0x24]
push 0x402054
lea ecx, [esp + 0x124]
add dl, 6
push eax
push ecx
mov word [esp + 0x48], di
mov byte [esp + 0x3c], dl
call fcn.00421010
mov al, byte [esp + 0x36c]
test al, al
jne 0x41d3e5
mov eax, dword [esp + 0x5c]
inc edi
test al, 1
mov word [esp + 0x32], di
mov byte [esp + 0x25], 8
je 0x41d3b6
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
jmp 0x41d3bc
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 0x402074
lea ecx, [esp + 0x14c]
push eax
push ecx
call fcn.00421010
mov al, byte [esp + 0x58]
test al, al
je 0x41d3f1
xor ecx, ecx
jmp 0x41d400
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x41d404
and ecx, 0xfffffffe
add ecx, 2
mov dword [esp + 0x18], ecx
mov al, byte [esp + 0x374]
test al, al
je 0x41d446
mov eax, ebx
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x378]
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.0043d520
mov ecx, dword [esp + 0x18]
mov ax, word [esp + 0x14]
mov dword [ebp + 0x50], ecx
mov ecx, dword [esp + 0x37c]
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.00463a40
mov ecx, dword [esp + 0x384]
mov edx, dword [esp + 0x380]
mov dword [esp + 0x14], ecx
lea ebx, [esp + 0x74]
mov dword [esp + 0x50], edx
lea edi, [esp + 0x28]
cmp word [edi], 0
je 0x41d4df
mov eax, dword [esp + 0x384]
test eax, eax
je 0x41d4af
mov ecx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x20]
mov byte [ecx], al
mov eax, dword [esp + 0x380]
test eax, eax
je 0x41d4d2
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 0x41d4d4
xor eax, eax
mov edx, dword [ebp + 0x5c]
push eax
push ebx
push edx
call fcn.00463ba0
inc esi
add edi, 2
add ebx, 0x28
cmp esi, 6
jl 0x41d494
mov cl, byte [esp + 0x13]
mov eax, 1
test cl, cl
je 0x41d4fd
mov eax, 2
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x41d515
add eax, 2
mov word [esp + 0x66], ax
inc eax
test cl, cl
je 0x41d515
add eax, 2
mov esi, dword [esp + 0x54]
add eax, 2
mov word [esp + 0x68], ax
inc eax
test esi, esi
je 0x41d52c
mov word [esp + 0x66], ax
inc eax
mov cl, byte [esp + 0x36c]
test cl, cl
jne 0x41d53f
add eax, 2
mov word [esp + 0x6a], ax
mov edx, dword [esp + 0x388]
test edx, edx
je 0x41d552
xor eax, eax
mov ax, word [edx + 0x1a]
jmp 0x41d569
test cl, cl
je 0x41d55a
xor eax, eax
jmp 0x41d569
mov bl, byte [esp + 0x364]
xor eax, eax
test bl, bl
setne al
inc eax
test esi, esi
je 0x41d574
mov ecx, 2
jmp 0x41d581
mov ecx, dword [esp + 0x368]
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 + 0x80]
push esi
push eax
mov eax, dword [esp + 0x388]
push ecx
lea ecx, [esp + 0x80]
push eax
push ecx
push edx
mov edx, dword [esp + 0x80]
mov ecx, ebp
push edx
call fcn.0041ceb0
mov eax, dword [0x481298]
mov ecx, 0x7e
lea edi, [esp + 0x164]
push 2
lea ebx, [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x5c]
push ecx
call fcn.0041c520
mov eax, dword [0x480f98]
push 8
cmp eax, 2
jne 0x41d5fd
lea edx, [esp + 0x168]
push 0x401c50
push edx
jmp 0x41d60a
lea eax, [esp + 0x168]
push 0x402a44
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
mov dword [esp + 0x16c], 0x420ff
mov word [esp + 0x170], 0xffff
mov byte [esp + 0x174], 3
lea ebp, [esp + 0x176]
je 0x41d695
mov ecx, dword [0x402080]
mov edx, dword [0x402084]
mov eax, dword [0x402088]
mov dword [esp + 0x176], ecx
mov ecx, dword [0x40208c]
mov dword [esp + 0x17a], edx
mov dx, word [0x402090]
mov dword [esp + 0x17e], eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x182], ecx
mov word [esp + 0x186], dx
mov word [esp + 0x182], ax
lea ebp, [esp + 0x188]
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, edi
jne 0x41d7a5
mov edx, dword [0x402098]
mov eax, dword [0x40209c]
mov ecx, ebp
mov si, word [esp + 0x2a]
add ebp, 0x12
mov dword [ecx], edx
mov edx, dword [0x4020a0]
add ebp, 0x12
mov dword [ecx + 4], eax
mov eax, dword [0x4020a4]
mov dword [ecx + 8], edx
mov dx, word [0x4020a8]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xac]
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 0x41d71a
mov edx, dword [0x481298]
mov ecx, ebx
sub ecx, edx
add ecx, 6
mov dword [ebp + 4], ecx
jmp 0x41d72e
mov edx, dword [esp + 0x360]
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 0x41d7a5
mov ecx, dword [0x4020b0]
mov edx, dword [0x4020b4]
mov eax, ebp
add ebp, 0x12
add ebp, 0x12
mov dword [eax], ecx
mov ecx, dword [0x4020b8]
mov dword [eax + 4], edx
mov edx, dword [0x4020bc]
mov dword [eax + 8], ecx
mov cx, word [0x4020c0]
mov dword [eax + 0xc], edx
mov dx, word [esp + 0x2c]
mov word [eax + 0x10], cx
mov eax, dword [esp + 0xd4]
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 [0x4020c8]
mov eax, dword [0x4020cc]
mov ecx, ebp
add ebp, 0x12
add ebp, 0x12
mov edi, 0x40202c
mov dword [ecx], edx
mov edx, dword [0x4020d0]
add ebp, 0x12
mov dword [ecx + 4], eax
mov eax, dword [0x4020d4]
mov dword [ecx + 8], edx
mov dx, word [0x4020d8]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xfc]
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 + 0x360]
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 0x41d8ee
mov eax, ecx
cmp eax, 8
jbe 0x41d8c6
mov ecx, dword [0x481298]
mov edi, dword [esp + 0x360]
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 0x41d8f0
mov edx, dword [esp + 0x360]
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 0x41d8f0
xor eax, eax
mov esi, dword [0x4020e0]
mov ecx, ebp
add ebp, 0x12
mov dword [ecx], esi
mov esi, dword [0x4020e4]
add ebp, 0x12
mov dword [ecx + 4], esi
mov esi, dword [0x4020e8]
mov dword [ecx + 8], esi
mov esi, dword [0x4020ec]
mov dword [ecx + 0xc], esi
mov si, word [0x4020f0]
mov word [ecx + 0x10], si
mov cx, word [esp + 0x3c]
mov word [ebp - 0x18], cx
mov ecx, dword [esp + 0x124]
mov dword [ebp - 0x12], ecx
mov cx, word [esp + 0x60]
mov word [ebp - 0xe], cx
mov cl, byte [esp + 0x36c]
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], dx
mov byte [ebp - 4], 5
test cl, cl
jne 0x41d9b8
mov esi, dword [0x4020f8]
mov ecx, ebp
add ebp, 0x12
mov dword [ecx], esi
mov esi, dword [0x4020fc]
add ebp, 0x12
mov dword [ecx + 4], esi
mov esi, dword [0x402100]
mov dword [ecx + 8], esi
mov esi, dword [0x402104]
mov dword [ecx + 0xc], esi
mov si, word [0x402108]
mov word [ecx + 0x10], si
mov cx, word [esp + 0x32]
mov word [ebp - 0x18], cx
mov ecx, dword [esp + 0x14c]
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, 0x401ff8
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 + 0x388]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp - 6], 0
mov byte [ebp - 2], 2
test eax, eax
je 0x41da6e
mov al, byte [0x481194]
mov esi, dword [edx + 0x5c]
test al, al
je 0x41da4a
call fcn.0040cbc0
mov edx, dword [esp + 0x44]
mov ecx, dword [0x469524]
mov eax, dword [ecx + esi*4]
test byte [eax + 4], 8
je 0x41da5e
mov eax, dword [eax + 0x1c]
jmp 0x41da64
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x388]
mov dword [ecx + 0xc], eax
mov esi, dword [edx + 0x5c]
lea eax, [esp + 0x164]
sub ebp, eax
mov al, byte [0x481194]
test al, al
je 0x41da88
call fcn.0040cbc0
mov ecx, dword [0x469524]
push ebp
mov eax, dword [ecx + esi*4]
test byte [eax + 4], 8
je 0x41daa8
lea edx, [esp + 0x168]
push edx
push eax
call fcn.0040c870
jmp 0x41dab6
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0040bee0
mov ebx, dword [esp + 0x44]
mov al, byte [0x481194]
mov esi, dword [0x481298]
mov edi, dword [ebx + 0x5c]
test al, al
je 0x41dad1
call fcn.0040cbc0
mov edx, dword [0x469524]
mov eax, dword [edx + edi*4]
test byte [eax + 4], 8
je 0x41daee
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.0040c870
jmp 0x41dafa
mov edx, dword [esp + 0x1c]
push edx
push esi
push eax
call fcn.0040bee0
mov al, byte [0x481194]
mov esi, dword [ebx + 0x5c]
test al, al
je 0x41db0b
call fcn.0040cbc0
mov eax, dword [0x469524]
mov eax, dword [eax + esi*4]
test byte [eax + 4], 8
je 0x41db1e
mov eax, dword [eax + 0x1c]
jmp 0x41db24
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0xc]
test al, 1
je 0x41db67
mov al, byte [0x481194]
mov esi, dword [ebx + 0x5c]
test al, al
je 0x41db39
call fcn.0040cbc0
mov edx, dword [0x469524]
push 1
push 0x4028f4
mov eax, dword [edx + esi*4]
push eax
test byte [eax + 4], 8
je 0x41db62
call fcn.0040c870
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 0x2c
call fcn.0040bee0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 0x2c