Function at 0x412c40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov dword [esi + 0x114], 0x415c70
mov dword [esi + 0xfc], 0x426530
lea eax, [esi + 0x94]
xor ebx, ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x110], ebx
mov edx, 1
mov dword [esi + 0x10c], edx
mov dword [esi + 0x164], ebx
mov byte [eax + 0x45], 6
mov dword [eax], 0x426140
mov dword [eax + 4], 0x426170
mov dword [eax + 0x30], 0x425380
lea ecx, [esi + 0x90]
mov dword [eax + 0x48], ecx
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], esi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov byte [esi + 0x15c], bl
mov byte [esi + 0x15d], bl
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], eax
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov byte [esi + 0x130], dl
mov dword [esi + 0x134], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x170], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0x1d8], ebx
mov dword [esi + 0x1dc], ebx
mov byte [esi + 0x1e4], bl
mov byte [esi + 0x1e5], bl
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1f4], eax
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
push str.EXPAT_ACCOUNTING_DEBUG
mov dword [esi + 0x20c], eax
call sub.msvcrt.dll_getenv
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x412e3f
call sub.msvcrt.dll__errno
mov dword [eax], ebx
push 0xa
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
call sub.msvcrt.dll_strtoul
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
cmp dword [eax], ebx
jne 0x412e38
mov ecx, dword [ebp - 4]
cmp byte [ecx], bl
jne 0x412e38
mov eax, edi
jmp 0x412e41
call sub.msvcrt.dll__errno
mov dword [eax], ebx
xor eax, eax
fld dword [0x462384]
mov dword [esi + 0x200], eax
xor eax, eax
fstp dword [esi + 0x204]
mov dword [esi + 0x208], 0x800000
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
push str.EXPAT_ENTITY_DEBUG
mov dword [esi + 0x21c], eax
call sub.msvcrt.dll_getenv
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x412ece
call sub.msvcrt.dll__errno
push 0xa
lea edx, [ebp - 4]
push edx
mov dword [eax], ebx
push edi
mov dword [ebp - 4], edi
call sub.msvcrt.dll_strtoul
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
cmp dword [eax], ebx
jne 0x412ec7
mov eax, dword [ebp - 4]
cmp byte [eax], bl
jne 0x412ec7
mov dword [esi + 0x21c], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], ebx
pop edi
mov dword [esi + 0x21c], ebx
pop ebx
mov esp, ebp
pop ebp
ret