Function at 0x40d130
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4688cc
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x48c9dc]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c9dc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
mov ebp, dword [esp + 0xcc]
mov esi, ecx
cmp dword [esi + 0xc], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0
jne 0x40d198
xor eax, eax
jmp 0x40ddaf
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._nprimitive
mov ecx, ebp
call eax
mov edi, dword [esi]
test edi, edi
je 0x40d1f7
lea ecx, [ecx]
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x4763a8
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [edx + 0x5c]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4763a8
mov ecx, ebp
call edx
cmp dword [edi + 4], 0
je 0x40d1f0
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4761c0
mov ecx, ebp
call edx
mov edi, dword [edi + 4]
test edi, edi
jne 0x40d1b0
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4763a4
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov ebx, dword [esi + 0xc]
mov edx, dword [eax + 0x5c]
push str._n__pin
mov ecx, ebp
mov dword [esp + 0x34], ebx
call edx
test ebx, ebx
je 0x40d723
cmp byte [ebx + 0xc], 0
je 0x40d23c
cmp byte [ebx + 0xd], 0
jne 0x40d23c
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x30], ebx
jmp 0x40d71b
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push str.ORCAD_NETLIST_NMP_PIN_NAMES
mov dword [esp + 0xc4], 0
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x40d2b2
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push str.Concept
call dword [sym.imp.nmp.dll_nmpIsLegalName]
add esp, 8
test eax, eax
jne 0x40d2b2
push eax
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [sym.imp.nmp.dll_nmpIdentToConcept]
mov edx, dword [sym.imp.nmp.dll_nmpAsciiToIdent]
push eax
push ecx
push edx
call dword [sym.imp.nmp.dll_nmpMapper]
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
cmp byte [ebx + 0xc], 0
je 0x40d30b
push 0
push 0x3c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2271]
push 0
push 0x3e
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2271]
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n____
mov ecx, ebp
call edx
mov edi, dword [ebp]
lea ecx, [esp + 0x14]
add edi, 0x5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
mov eax, dword [edi]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x47636c
mov ecx, ebp
call eax
jmp 0x40d340
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._n____
mov ecx, ebp
call eax
mov edi, dword [ebp]
lea ecx, [esp + 0x14]
add edi, 0x5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [edi]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x47636c
mov ecx, ebp
call edx
push 0x4760d0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SPLIT
mov byte [esp + 0xcc], 1
call dword [sym.imp.MFC80.DLL_Ordinal_304]
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00411cf0
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 2
call fcn.0040c630
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n______PIN_NUMBER_
mov ecx, ebp
mov byte [esp + 0xc4], 3
call edx
mov ebx, dword [ebx + 0x10]
cmp ebx, esi
mov dword [esp + 0x24], esi
je 0x40d51a
push str.TRue
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
mov eax, dword [ebx]
jne 0x40d42d
mov edi, 0x476340
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40d4a0
cmp dword [esp + 0x24], edx
jne 0x40d4a0
push eax
lea eax, [esp + 0x58]
push 0x47633c
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
mov edx, dword [ebp]
mov edx, dword [edx + 0x5c]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call edx
mov dword [esp + 0x24], 1
jmp 0x40d450
push eax
lea ecx, [esp + 0x58]
push 0x47633c
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
mov edx, dword [ebp]
mov edx, dword [edx + 0x5c]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebx]
xor edx, edx
mov ecx, 2
mov esi, eax
mov edi, 0x476340
repe cmpsb byte [esi], byte es:[edi]
je 0x40d4a0
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 4]
add esp, 4
lea ecx, [esp + 0x2c]
lea edi, [eax + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0040c6c0
push 1
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0040c240
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [ebx + 4], 0
je 0x40d50b
push str.TRue
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40d4e2
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov edi, 0x476340
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d50b
cmp dword [esp + 0x24], edx
jne 0x40d50b
mov ebx, eax
jmp 0x40d50b
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4761c0
mov ecx, ebp
call edx
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40d4f8
mov ax, word [0x4761c0]
mov word [edi], ax
test ebx, ebx
je 0x40d51a
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x40d3c1
lea ecx, [esp + 0x38]
call fcn.0040ced0
lea ecx, [esp + 0x38]
call fcn.0040caa0
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp]
add dword [esp + 0x28], ecx
mov eax, dword [edx + 0x5c]
push 0x476338
mov ecx, ebp
call eax
mov ebx, dword [esp + 0x30]
fld dword [ebx + 4]
fcomp qword [0x476330]
fnstsw ax
test ah, 0x44
jnp 0x40d5be
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._n______INPUT_LOAD_
mov ecx, ebp
call eax
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 0x44
jp 0x40d57e
mov word [esp + 0x84], 0x2a
jmp 0x40d59d
fld dword [ebx + 4]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x8c]
push 0x47630c
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x476338
mov ecx, ebp
call edx
fld dword [ebx + 8]
fcomp qword [0x476330]
fnstsw ax
test ah, 0x44
jnp 0x40d62f
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n______OUTPUT_LOAD_
mov ecx, ebp
call edx
fldz
fcomp dword [ebx + 8]
fnstsw ax
test ah, 0x44
jp 0x40d5f2
mov word [esp + 0x78], 0x2a
jmp 0x40d611
fld dword [ebx + 8]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x80]
push 0x47630c
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x476338
mov ecx, ebp
call edx
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x40d694
mov esi, 0x4760d0
jmp 0x40d640
cmp dword [edi + 4], esi
je 0x40d690
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n
mov ecx, ebp
call edx
mov ecx, dword [edi]
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push ecx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4762e8
mov ecx, ebp
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push ecx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4762e4
mov ecx, ebp
call edx
mov edi, dword [edi + 8]
test edi, edi
jne 0x40d640
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ebx, dword [ebx + 0x1c]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0
je 0x40d6d5
lea ebx, [ebx]
mov edi, dword [eax]
push eax
call sub.MFC80.DLL_Ordinal_764
mov ecx, dword [esp + 0x40]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x40d6c0
push ecx
call sub.MFC80.DLL_Ordinal_764
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], 0
mov byte [esp + 0xc0], 1
call dword [sym.imp.orDb_Dll.dll_public:_void___thiscall_DboState::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov esi, dword [esp + 0x20]
test ebx, ebx
jne 0x40d224
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n__end_pin_
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n__body
mov ecx, ebp
call edx
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x30], eax
je 0x40d98a
cmp byte [eax + 0xc], 0
je 0x40d97b
cmp byte [eax + 0xd], 0
jne 0x40d97b
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push str.ORCAD_NETLIST_NMP_PIN_NAMES
mov dword [esp + 0xc4], 4
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x40d7da
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push str.Concept
call dword [sym.imp.nmp.dll_nmpIsLegalName]
add esp, 8
test eax, eax
jne 0x40d7da
push eax
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ecx, dword [sym.imp.nmp.dll_nmpIdentToConcept]
mov edx, dword [sym.imp.nmp.dll_nmpAsciiToIdent]
push eax
push ecx
push edx
call dword [sym.imp.nmp.dll_nmpMapper]
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n____POWER_PINS_
mov ecx, ebp
call edx
mov edi, dword [ebp]
lea ecx, [esp + 0x14]
add edi, 0x5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
mov eax, dword [edi]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x476034
mov ecx, ebp
call eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d820
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
sub eax, edx
test esi, esi
lea ebx, [eax + 0xd]
je 0x40d94f
lea ecx, [ecx]
mov edx, dword [esi]
push edx
lea eax, [esp + 0x58]
push 0x47633c
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x60]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d860
sub eax, edx
lea ebx, [ebx + eax + 1]
lea ecx, [ebx + 3]
cmp ecx, 0x400
jle 0x40d8e0
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x476338
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._n____POWER_PINS_
mov ecx, ebp
call eax
mov edi, dword [ebp]
lea ecx, [esp + 0x14]
add edi, 0x5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [edi]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x476034
mov ecx, ebp
call edx
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d8c5
sub eax, edx
lea ecx, [esp + 0x14]
mov edi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
lea ebx, [eax + edi + 0xe]
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call edx
mov eax, dword [esi + 4]
add dword [esp + 0x28], 1
test eax, eax
je 0x40d925
mov eax, dword [eax]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d900
sub eax, edx
lea eax, [eax + ebx + 4]
cmp eax, 0x400
ja 0x40d925
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x4761c0
mov ecx, ebp
call eax
lea edi, [esp + 0x54]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40d930
mov cx, word [0x4761c0]
mov word [edi], cx
mov esi, dword [esi + 4]
test esi, esi
jne 0x40d840
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x476338
mov ecx, ebp
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x40d750
mov edi, dword [esi + 8]
test edi, edi
je 0x40da3d
mov esi, 5
lea ebx, [ebx]
cmp dword [edi + 4], 0x4760d0
je 0x40da35
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x4762b4
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [edx + 0x5c]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4762e8
mov ecx, ebp
call edx
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], esi
call dword [sym.imp.MFC80.DLL_Ordinal_6180]
mov ebx, dword [ebp]
lea ecx, [esp + 0x18]
add ebx, 0x5c
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [ebx]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4762e4
mov ecx, ebp
call edx
mov edi, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MFC80.DLL_Ordinal_578]
test edi, edi
jne 0x40d9a0
mov esi, dword [esp + 0x20]
cmp dword [esi + 4], 0
je 0x40dd8d
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push str._n____NC_PINS_
mov ecx, ebp
call edx
mov edi, dword [esi + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0xa
mov byte [esp + 0x1f], 0
call dword [sym.imp.MFC80.DLL_Ordinal_310]
test edi, edi
mov dword [esp + 0xc0], 6
je 0x40dc29
jmp 0x40da90
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x58]
push 0x47633c
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x60]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dab1
sub eax, edx
xor edi, edi
cmp byte [esp + 0x54], 0x20
mov ebx, eax
jne 0x40dada
jmp 0x40dad0
add edi, 1
cmp byte [esp + edi + 0x54], 0x20
je 0x40dad0
xor esi, esi
cmp edi, ebx
jge 0x40daf9
mov al, byte [esp + edi + 0x54]
cmp al, 0x20
je 0x40daf9
mov byte [esp + esi + 0x90], al
add edi, 1
add esi, 1
cmp edi, ebx
jl 0x40dae0
lea eax, [ebx - 1]
cmp edi, eax
jge 0x40db4d
cmp edi, ebx
jge 0x40db4d
mov cl, byte [esp + edi + 0x54]
add edi, 1
cmp cl, 0x20
je 0x40db49
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x23], 1
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 7
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x48]
mov byte [esp + 0xc0], 6
call dword [sym.imp.MFC80.DLL_Ordinal_578]
cmp edi, ebx
jl 0x40db04
lea eax, [esp + 0x90]
mov byte [esp + esi + 0x90], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40db60
mov ecx, dword [esp + 0x18]
sub eax, edx
lea eax, [ecx + eax + 1]
mov dword [esp + 0x18], eax
add eax, 3
cmp eax, 0x400
jle 0x40dbc2
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push 0x476338
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._n____NC_PINS_
mov ecx, ebp
call eax
lea eax, [esp + 0x90]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dbb0
sub eax, edx
add eax, 0xb
mov dword [esp + 0x18], eax
mov edx, dword [ebp]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x90]
push eax
mov ecx, ebp
call edx
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
add dword [esp + 0x28], 1
test eax, eax
je 0x40dc1a
mov eax, dword [eax]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dbf0
mov ecx, dword [esp + 0x18]
sub eax, edx
lea edx, [eax + ecx + 4]
cmp edx, 0x400
ja 0x40dc1a
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x4761c0
mov ecx, ebp
call edx
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x40da90
mov eax, dword [ebp]
mov edx, dword [eax + 0x5c]
push 0x476338
mov ecx, ebp
call edx
cmp byte [esp + 0x1f], 0
je 0x40dd78
cmp dword [esp + 0x34], 0
je 0x40dd78
push 0x4760d0
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0xc8], 8
call dword [sym.imp.orDb_Dll.dll_public:_class_DboState___thiscall_DboInstOccurrence::GetReferenceDesignator_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____]
lea ecx, [esp + 0x34]
call dword [sym.imp.orDb_Dll.dll_public:_void___thiscall_DboState::destructor_void_]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
mov byte [esp + 0xd0], 0xc
call fcn.0043e910
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add esp, 0x10
push edx
push eax
push ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [0x48cc08]
push eax
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
mov eax, dword [0x48cc68]
mov edi, eax
add eax, 1
add esp, 0x1c
lea ecx, [esp + 0x20]
mov dword [0x48cc68], eax
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
mov esi, eax
add esp, 4
mov eax, edi
call fcn.0040b390
lea ecx, [esp + 0x20]
mov byte [0x48cc6c], 1
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp 0x40ddab
lea ecx, [esp + 0x24]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._n__end_body_
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x5c]
push str._nend_primitive_
mov ecx, ebp
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043f646
add esp, 0xb0
ret 8