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

Disassembly:
push 0xffffffffffffffff
push 0x476941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
call fcn.00403980
mov eax, dword [esp + 0x12c]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
cmp esi, eax
mov ebp, 0x10
je 0x40dcf1
lea eax, [esi + 4]
mov dword [esp + 0x18], eax
jmp 0x40d9d0
mov eax, dword [esi + 0x14]
cmp eax, 1
mov byte [esp + 0x13], 0
jbe 0x40da97
test eax, eax
ja 0x40d9ec
mov ecx, esi
call fcn.0045fd36
cmp dword [esi + 0x18], ebp
mov ebx, dword [esp + 0x18]
jb 0x40d9f9
mov eax, dword [ebx]
jmp 0x40d9fb
mov eax, ebx
cmp byte [eax], 0x2f
je 0x40da1e
mov eax, dword [esi + 0x14]
test eax, eax
ja 0x40da0e
mov ecx, esi
call fcn.0045fd36
cmp dword [esi + 0x18], ebp
jb 0x40da17
mov eax, dword [ebx]
jmp 0x40da19
mov eax, ebx
cmp byte [eax], 0x2d
jne 0x40da9b
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0xd0]
push ecx
mov ecx, esi
call fcn.00409e20
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 4
mov dword [esp + 0x128], 0
call fcn.00409b80
mov edi, eax
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x124], 0xffffffff
jb 0x40da6f
mov edx, dword [esp + 0xcc]
push edx
call fcn.00466af5
add esp, 4
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
mov byte [esp + 0x13], 1
jmp 0x40db49
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, 1
jbe 0x40db3b
test eax, eax
ja 0x40dab2
mov ecx, esi
call fcn.0045fd36
cmp dword [esi + 0x18], ebp
jb 0x40dabb
mov eax, dword [ebx]
jmp 0x40dabd
mov eax, ebx
cmp byte [eax], 0x40
jne 0x40db3b
mov eax, dword [esp + 0x1c]
test byte [eax + 0x30], 1
je 0x40db3b
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00409e20
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x128], 1
call fcn.0040d5c0
mov bl, al
mov eax, dword [esp + 0x38]
neg bl
sbb bl, bl
inc bl
cmp eax, ebp
mov dword [esp + 0x124], 0xffffffff
jb 0x40db19
mov edx, dword [esp + 0x24]
push edx
call fcn.00466af5
add esp, 4
test bl, bl
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jne 0x40e14d
jmp 0x40dccf
mov ecx, dword [esp + 0x1c]
add ecx, 4
call fcn.00409bc0
mov edi, eax
test edi, edi
je 0x40dd37
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test al, al
je 0x40dcc1
mov al, byte [esp + 0x13]
test al, al
je 0x40db84
mov ecx, dword [esp + 0x12c]
mov eax, dword [ecx + 8]
add esi, 0x1c
add ebx, 0x1c
cmp esi, eax
mov dword [esp + 0x18], ebx
je 0x40ddc1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
test al, al
mov ecx, edi
je 0x40de64
mov eax, dword [edi]
push esi
call dword [eax + 0x10]
test al, al
jne 0x40dccb
lea ecx, [esp + 0x90]
push ecx
mov ecx, edi
call fcn.00409df0
push eax
lea edx, [esp + 0x24]
push str.Argument_
push edx
mov dword [esp + 0x130], 0xc
call fcn.0040a060
push str._cannot_accept_parameter:_
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x13c], 0xd
call fcn.00404340
push esi
push eax
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x148], 0xe
call fcn.00409e60
push 0x47cc24
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x154], 0xf
call fcn.00404340
add esp, 0x30
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [esp + 0x130], 0x10
call fcn.00403de0
cmp dword [esp + 0x54], ebp
jb 0x40dc41
mov eax, dword [esp + 0x40]
push eax
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x8c], ebp
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
jb 0x40dc69
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
jb 0x40dc8f
mov edx, dword [esp + 0x5c]
push edx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jb 0x40dcaf
mov eax, dword [esp + 0x24]
push eax
call fcn.00466af5
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jmp 0x40e04c
test byte [edi + 4], 1
jne 0x40dfa2
or byte [edi + 4], 1
add dword [esp + 0x18], 0x1c
mov ecx, dword [esp + 0x12c]
mov eax, dword [ecx + 8]
add esi, 0x1c
cmp esi, eax
jne 0x40d9d0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x40dd1a
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 4]
test al, al
je 0x40e070
mov eax, dword [edi + 0xc]
add esi, 8
cmp esi, eax
jne 0x40dd00
mov al, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8
push esi
lea edx, [esp + 0x40]
push str.Unrecognized_argument_
push edx
call fcn.0040a060
push 0x47cc24
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x13c], 2
call fcn.00404340
add esp, 0x18
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x130], 3
call fcn.00403de0
cmp dword [esp + 0x38], ebp
jb 0x40dd8e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00466af5
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
cmp dword [esp + 0x54], ebp
jb 0x40e14d
mov edx, dword [esp + 0x40]
push edx
call fcn.00466af5
add esp, 4
xor al, al
jmp 0x40dd1c
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.00409df0
push eax
lea ecx, [esp + 0x5c]
push str.Argument_
push ecx
mov dword [esp + 0x130], 4
call fcn.0040a060
push str._expects_a_parameter.
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x13c], 5
call fcn.00404340
add esp, 0x18
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
mov byte [esp + 0x130], 6
call fcn.00403de0
cmp dword [esp + 0x38], ebp
jb 0x40de2d
mov eax, dword [esp + 0x24]
push eax
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x70], ebp
mov edi, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
jb 0x40de52
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00466af5
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
jmp 0x40dda3
lea eax, [esp + 0x90]
push eax
call fcn.00409df0
push eax
lea ecx, [esp + 0x40]
push str.Argument_
push ecx
mov dword [esp + 0x130], 7
call fcn.0040a060
push str._cannot_accept_another_parameter:_
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x13c], 8
call fcn.00404340
push esi
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x148], 9
call fcn.00409e60
push 0x47cc24
push eax
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x154], 0xa
call fcn.00404340
add esp, 0x30
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [esp + 0x130], 0xb
call fcn.00403de0
cmp dword [esp + 0x70], ebp
jb 0x40df03
mov edx, dword [esp + 0x5c]
push edx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x38], ebp
mov esi, 0xf
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jb 0x40df28
mov eax, dword [esp + 0x24]
push eax
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x40df4b
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
jb 0x40df71
mov edx, dword [esp + 0x40]
push edx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0xa8], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
jb 0x40e14d
mov eax, dword [esp + 0x94]
push eax
call fcn.00466af5
add esp, 4
xor al, al
jmp 0x40dd1c
lea edx, [esp + 0x90]
push edx
mov ecx, edi
call fcn.00409df0
push eax
lea eax, [esp + 0x78]
push str.Argument_
push eax
mov dword [esp + 0x130], 0x11
call fcn.0040a060
push str._already_present.
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x13c], 0x12
call fcn.00404340
add esp, 0x18
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [esp + 0x130], 0x13
call fcn.00403de0
cmp dword [esp + 0x54], ebp
jb 0x40e011
mov edx, dword [esp + 0x40]
push edx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x8c], ebp
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
jb 0x40e039
mov eax, dword [esp + 0x78]
push eax
call fcn.00466af5
add esp, 4
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
cmp dword [esp + 0xa8], ebp
jb 0x40e14d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00466af5
add esp, 4
xor al, al
jmp 0x40dd1c
mov ecx, dword [esi + 4]
lea eax, [esp + 0x100]
push eax
call fcn.00409df0
push eax
lea ecx, [esp + 0xe8]
push str.Expected_argument_
push ecx
mov dword [esp + 0x130], 0x14
call fcn.0040a060
push 0x47cc24
push eax
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0x13c], 0x15
call fcn.00404340
add esp, 0x18
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov ecx, ebx
mov byte [esp + 0x130], 0x16
call fcn.00403de0
cmp dword [esp + 0xc4], ebp
jb 0x40e0ea
mov eax, dword [esp + 0xb0]
push eax
call fcn.00466af5
add esp, 4
cmp dword [esp + 0xfc], ebp
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], edi
mov byte [esp + 0xb0], 0
jb 0x40e11e
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.00466af5
add esp, 4
cmp dword [esp + 0x118], ebp
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], edi
mov byte [esp + 0xe8], 0
jb 0x40e14d
mov edx, dword [esp + 0x104]
push edx
call fcn.00466af5
add esp, 4
xor al, al
jmp 0x40dd1c