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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, ecx
cmp ebp, 0x20
je 0x41d7ea
cmp ebp, 0x200
jb 0x41dcee
cmp ebp, 0x206
ja 0x41dcee
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x28], ecx
cmp ebp, 0x20
jne 0x41d830
cmp edx, dword [edi + 4]
jne 0x41dcee
cmp ax, 1
jne 0x41dcee
lea eax, [esp + 0x24]
push eax
call dword [0x100893b0]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [0x1008939c]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0xbc]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x41d8d8
mov esi, dword [eax + 0x20]
mov eax, dword [esi]
push eax
call fcn.0041f410
mov ecx, dword [esi + 4]
mov esi, dword [0x100893ec]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [edi + 4]
push 0x1038
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 2
call esi
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x34]
mov edx, dword [edi + 0xbc]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x38]
mov ebx, eax
sub ebx, dword [edx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebx
mov ebx, ecx
sub ebx, dword [edx + 0x10]
mov dword [esp + 0x30], ebx
cmp ebp, 0x200
jne 0x41db13
push ecx
push eax
add edx, 0xc
push edx
call dword [0x100893cc]
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x41da7f
mov ecx, dword [edi + 0xbc]
mov dword [esp + 0x18], ecx
jmp 0x41da7f
mov edx, dword [esp + 0x24]
mov ebp, dword [0x100893ec]
lea eax, [esp + 0x54]
push eax
push ebx
mov dword [esp + 0x60], ecx
mov ecx, dword [edi + 4]
push 0x1039
push ecx
mov dword [esp + 0x64], edx
call ebp
cmp dword [esp + 0x70], 0x200
jne 0x41d979
xor esi, esi
cmp dword [edi + 0x78], esi
je 0x41d979
mov eax, dword [edi + 0x7c]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
je 0x41d979
mov dword [edi + 0x7c], ecx
cmp eax, 0xffffffff
je 0x41d948
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [edi + 4]
push 0x100e
push eax
mov dword [esp + 0x44], esi
call ebp
mov edx, dword [edi + 4]
dec dword [esp + 0x40]
push esi
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [0x100893e0]
mov eax, dword [edi + 0x7c]
cmp eax, 0xffffffff
je 0x41d979
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x44], esi
call ebp
mov ecx, dword [edi + 4]
dec dword [esp + 0x40]
push esi
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x100893e0]
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x41da6b
cmp dword [esp + 0x64], 0xffffffff
je 0x41da6b
push eax
push edi
call fcn.0041e490
mov esi, eax
test esi, esi
je 0x41da6b
mov eax, dword [esp + 0x64]
cmp eax, dword [esi + 4]
jge 0x41da6b
test eax, eax
jl 0x41db02
mov edx, dword [esi]
cmp dword [edx + eax*4], ebx
je 0x41da6b
mov ecx, dword [esp + 0x60]
mov edx, dword [edi + 4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push ecx
push 0x1038
push edx
mov dword [esp + 0x54], 2
call ebp
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov ecx, esi
call fcn.0041e5e0
mov esi, dword [eax]
mov edx, dword [esi + 0xc]
add esi, 8
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x41da6b
test ecx, ecx
jl 0x41db02
cmp ecx, dword [esi + 4]
jge 0x41db02
mov eax, dword [esi]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
test al, 1
je 0x41da5e
shr eax, 2
not eax
test al, 1
je 0x41da5e
mov ecx, dword [esp + 0x38]
push ecx
push ebp
lea edx, [ebx + 0xc]
push edx
call dword [0x100893cc]
test eax, eax
jne 0x41dae3
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x41da18
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x70], 0x200
mov esi, dword [0x100893ec]
jne 0x41db17
mov ecx, dword [edi + 0xc0]
mov ebp, dword [esp + 0x18]
cmp ebp, ecx
je 0x41dab1
test ecx, ecx
je 0x41da98
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
call edx
mov dword [edi + 0xc0], ebp
test ebp, ebp
je 0x41dab1
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call edx
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov dword [ebp], 0
test ebx, ebx
je 0x41dba5
cmp ecx, 0x200
jne 0x41db62
mov edx, dword [ebx]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x2c]
push eax
jmp 0x41db92
sub ebp, dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
sub eax, dword [ebx + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
jmp 0x41da67
push 0
push 0
push 1
push 0xc000008c
call dword [0x10089230]
mov ebx, edx
jmp 0x41db1b
mov ebp, dword [esp + 0x70]
cmp ebp, 0x20
jne 0x41dab1
test ebx, ebx
je 0x41db4b
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x41db4b
mov ecx, dword [esp + 0x74]
mov eax, 1
mov dword [ecx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov ecx, dword [esp + 0x74]
xor eax, eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 0x201
jne 0x41db71
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
jmp 0x41db8d
cmp ecx, 0x202
jne 0x41db80
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
jmp 0x41db8d
cmp ecx, 0x203
jne 0x41dba5
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call edx
mov dword [ebp], eax
test eax, eax
jne 0x41dcee
mov ecx, dword [esp + 0x70]
cmp ecx, 0x201
je 0x41dbb9
cmp ecx, 0x204
jne 0x41dc79
mov eax, dword [edi + 0x80]
mov edx, dword [esp + 0x60]
cmp edx, eax
je 0x41dc7d
mov dword [edi + 0x80], edx
cmp eax, 0xffffffff
je 0x41dc04
mov edx, dword [edi + 4]
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x54], 0
call esi
mov ecx, dword [edi + 4]
dec dword [esp + 0x50]
push 0
lea eax, [esp + 0x48]
push eax
push ecx
call dword [0x100893e0]
mov eax, dword [edi + 0x80]
cmp eax, 0xffffffff
je 0x41dc3d
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [edi + 4]
push 0x100e
push eax
mov dword [esp + 0x54], 0
call esi
mov edx, dword [edi + 4]
dec dword [esp + 0x50]
push 0
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [0x100893e0]
mov eax, dword [edi + 4]
push eax
call dword [0x10089370]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x38], eax
call dword [0x100893ac]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x60]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0xffffd8f0
mov dword [esp + 0x44], ecx
call dword [0x100893e8]
lea ecx, [esp + 0x34]
jmp 0x41dcdf
mov edx, dword [esp + 0x60]
cmp ecx, 0x203
jne 0x41dca2
cmp edx, 0xffffffff
je 0x41dce7
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x48], eax
call dword [0x100893ac]
mov dword [esp + 0x4c], 0xffffd8ef
jmp 0x41dcc5
cmp ecx, 0x205
jne 0x41dce7
cmp edx, 0xffffffff
je 0x41dce7
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x48], eax
call dword [0x100893ac]
mov dword [esp + 0x4c], 0xffffd8ee
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x54], edx
call dword [0x100893e8]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x4e
push eax
call esi
mov dword [ebp], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 8